-
Couldn't load subscription status.
- Fork 146
stm32cube: stm32g4xx: wrong clock setup #34
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
Conversation
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 update patch list section in package readme file.
Also please provide ST internal tracking number
|
stm32cube/stm32g4xx/README file updated |
When configuring the PLL > 80MHz, an intermediate step is needed with AHB prescaler set to 2 before setting the actual value. Then the AHB prescaler 1 must be set, though Signed-off-by: Francois Ramu <[email protected]>
|
Just found that this PR fixed the LED blinky issue, but causes a wrong setting of In case of PLL frequency >80 MHz, the following call
sets also SysCoreClock to
However, the call
afterwards only sets the AHB prescaler to final value, but does not update the SysCoreClock anymore.
@FRASTM can you please have a look? Thanks! Can we try to get this fixed before Zephyr release 2.2 merge window closes? Otherwise the STM32G4 is hardly useable. (posting here, as I can't open an issue in this repo). |
When configuring the PLL > 80MHz, an intermediate step is needed
with AHB prescaler set to 2 before setting the actual value.
In case the actual value is AHB prescaler 1, it must be set, though.
This will fix zephyrproject-rtos/zephyr#21715
Signed-off-by: Francois Ramu [email protected]