-
Notifications
You must be signed in to change notification settings - Fork 143
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
[stm32] RCC: Fix wrong PLL HSI source selection #414
Conversation
For more information see #413 (comment) cc @nesos @salkinium |
Seems like only some STM32F0 have the The following devices do not have the pre-divider (according to CMSIS headers):
|
Maybe this problem is also related to #99 ?! |
39409b4
to
1df8c89
Compare
1df8c89
to
81acd28
Compare
81acd28
to
01d439c
Compare
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.
Thanks!
InternalClock = Hsi, | ||
%% endif | ||
%% if (target["family"] == "f0") or (target["family"] == "f3" and target["size"] in ["8", "c"]) | ||
HsiDiv2 = RCC_CFGR_PLLSRC_HSI_DIV2, |
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.
Why ST, whyyyyyyy?
On STM32F042 (and other STM32F0/STM32F3)
Rcc::enablePll(Rcc::PllSource::InternalClock, pllFactors)
selects the Hsi clock divided by 2 (and not divided byPllFactors::pllPrediv
) as pll source.Related to #413