AnsweredAssumed Answered

STM32L476 RTC initialization problem

Question asked by lucky on Jan 25, 2016

Hi,

I am using STM32L476 controller. When I am trying to initialize internal RTC with LSI clock using ST example code, it is returning timeout. When I debugged the code I observed it is in

RTC_EnterInitMode() function and returning timeout at below condition.

/* Wait till RTC is in INIT state and if Time out is reached exit */

while((hrtc->Instance->ISR & RTC_ISR_INITF) == (uint32_t)RESET)

I have verified the LSI clock frequency it is 32K.

Can someone please tell me what can be the problem?

Thank you.
Lucky

Outcomes