cancel
Showing results for 
Search instead for 
Did you mean: 

Error when configuring PLL on STM32F767

a b
Associate
Posted on April 05, 2018 at 20:59

,|,,

#stm32-rcc #stm32f7
1 REPLY 1
Posted on April 05, 2018 at 21:59

>>Unfortunately I do not have the luxury of using any of the libraries.

Shouldn't prevent you from looking at the code and the logic, and understanding it in the context of the reference manual. These types of policies presume you can code better and more robustly than the authors of the other libraries. Have the people who defined the policy walk the code with you.

HSI is running the system at startup, no need to turn it on.

You need to have the PLL running BEFORE you select it as the primary clock source to the synchronous machine.

You need to select Flash wait states commensurate with the speed you are selecting. At least 5 for 192 MHz

Using 'RCC->PLLCFGR |=' 5+ times is very inefficient, write it once.

>>I have gone through the reference manual several times and can't identify the problem.

If you have to use this programming style you're going to need to get a lot better at this.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..