Associate
August 12, 2012
Question
clock problem
- August 12, 2012
- 4 replies
- 1330 views
Posted on August 12, 2012 at 15:25
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 ?