AnsweredAssumed Answered

HSI never ready on STM32F4 Discovery

Question asked by Alan Chambers on Mar 24, 2016
Latest reply on Mar 24, 2016 by Alan Chambers
I'm trying to set up the RTC on the Disco, have read some documentation, and looked at the many examples that are out there. But I fell at the first hurdle:

      RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR,ENABLE);
      PWR_BackupAccessCmd(ENABLE);//To enable backup register operation
      RCC_LSICmd(ENABLE);
      while(RCC_GetFlagStatus(RCC_FLAG_LSIRDY) == RESET);

The flag appears never to beoome set. Are some other things meant to happen first? I can see that the LSION bit is set in RCC->CSR, but the LSIRDY bit is never set. How long should this take? I have the feeling I'm missing something really obvious.

Thanks.


Al

Outcomes