2011-04-17 07:01 AM
cannot use pll stm32f103rb
2011-05-17 05:31 AM
Perhaps you shouldn't be making presumptions about the initial condition of RCC->CFGR
2011-05-17 05:31 AM
2011-05-17 05:31 AM
Printing out the RCC registers in your two conditions might be instructive to understand how the PLL is running at the different speeds.
This line makes a lot of assumptions // Select PREDIV1 as PLL source and sett PLL mul to 3 (set bit 0) // for 8*3 = 24 MHz RCC->CFGR |= RCC_CFGR_PLLSRC | RCC_CFGR_PLLMULL_0;