-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32WL fixed current consumption for mode RBI_CONF_RFO_HP #15017
Conversation
@ludoch-stm Please comment |
@hallard, thank you for your changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please squash these into one (its simple fix).
not easy (at least for me, last time I tried it wen't bad) once all files commited in existing PR (this one) but you can |
fixed wrong help values name added detailled comments fix style-check fix style-check
OK, we will squash |
I tried in the meantime with magic command line, looks like it worked :-) |
90a465c
to
6d07477
Compare
Hi there, just asking, any chance to get this PR merged before 6.14 release? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved by ST Lora team
CI started |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
@jeromecoutant, @0xc0170 So I'm asking you guys what the best option and if you approve a change like that (so changing nothing if this define not defined by default)? #ifndef RBI_CONF_RFO_HP_NO_POWER_FIX
// We are in rfo_hp ONLY but it's not optimal settings for other than +21dBm or +22dBm
if (board_rf_switch_config == RBI_CONF_RFO_HP) {
// so we need to handle settings sot rfo_lp equilavent that we don't have enabled
// See Section 5.1.2 of Application Note
// https://www.st.com/resource/en/application_note/an5457-rf-matching-network-design-guide-for-stm32wl-series-stmicroelectronics.pdf
if (power > 20) {
set_pa_config(0x04, 0x07, 0x00, 0x01);
} else if (power > 17) {
set_pa_config(0x03, 0x05, 0x00, 0x01);
} else if (power > 14) {
set_pa_config(0x02, 0x03, 0x00, 0x01);
} else {
set_pa_config(0x02, 0x02, 0x00, 0x01);
}
// In this case we have
} else {
set_pa_config(0x04, 0x07, 0x00, 0x01);
}
#else
// no power patch
set_pa_config(0x04, 0x07, 0x00, 0x01);
#endif |
Hi |
Summary of changes
STM32WL, fixed current consumption when using mode
RBI_CONF_RFO_HP
Added optimal settings when using mode
RBI_CONF_RFO_HP
according ST application note an5457 section 5.1.2See detailed post issue here
Impact of changes
Added optimal settings when using mode
RBI_CONF_RFO_HP
(only RFO High)Migration actions required
Documentation
Pull request type
Test results
Reviewers
@MarceloSalazar @jeromecoutant @0xc0170