AnsweredAssumed Answered

Problems setting up clocks, STM32F401RE

Question asked by Paulstrom.Bjorn on Oct 4, 2016
Latest reply on Oct 4, 2016 by barton.michael
Hello I am using a nucleoboard and am trying to set up all the clocks using this:

     RCC_ClocksTypeDef RCC_Clocks;
     RCC_PLLConfig(RCC_PLLSource_HSI, 16, 336, 4, 2);
     while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET);
     while (RCC_GetSYSCLKSource() != 0x08);

     uint32_t clock = RCC_Clocks.SYSCLK_Frequency;

However clock is not the 84MHz I expected, it is 131250000. What am I doing wrong?