-
Notifications
You must be signed in to change notification settings - Fork 5
Cleanup STM32 targets + RNG for STM32F2 + Support any frequency #2
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
base: main
Are you sure you want to change the base?
Conversation
5d405da to
a3b3568
Compare
|
Fixed |
|
Hi, sorry about the late response on this PR. Getting the following error when building for the F2: |
- Updated STM32F2 to STM32F215RG board - Added RNG to STM32F2 - Cleaned up STM32F2 and STM32F4 so they are mostly matching - Fixed PLL values in STM32F2 and STM32F4 to output 48 MHz for RNG at the default frequency of 7.37MHz
|
@alex-dewar I was able to reproduce your error. You are using python < 3.8, while the python script uses walrus operator which is a 3.8 feature. I assumed that python 3.9 or later would be installed since older versions are no longer maintained. I made a change so the PLL values fallback to the default values if python is not installed or is installed and the version is < 3.8. |
These changes perform the following:
UART_INITBAUDF_CPU. This allows the PLL values (M, N, Q) to always produce 48 MHz.For the last one, the python script does the following: