Question
Startup Clock HSI
Posted on May 01, 2012 at 17:29
I'm simply looking to have the STM32F4 startup using the HSI clock (at the default 16MHz). How best can this be accomplished (if it's not already default). What clock does the STM32F4 natively startup using? I was thinking this would work:
static void SetSysClock(void){ /* RCC system reset(for debug purpose) */ RCC_DeInit(); // Enable HSI Clock and wait until it's ready RCC_HSICmd(ENABLE); while(RCC_GetFlagStatus(RCC_FLAG_HSIRDY) == RESET);}