AnsweredAssumed Answered

clock problem

Question asked by lee.tom.003 on Aug 12, 2012
Latest reply on Aug 13, 2012 by Clive One
I want to use the HSI, and the code is like the following:

void RCC_Configuration(void)
{
 RCC_DeInit();
 RCC_HSICmd(ENABLE);
 RCC_AdjustHSICalibrationValue(0);
 RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_AFIO|RCC_APB2Periph_USART1,ENABLE);
}

There is no error during the compilation, but the hardware debug is kind of strange, as shown in the attached.

CFGR=0 means that MCO=0, which then indicates that there is no clock at all....

What's wrong ?

Attachments

Outcomes