AnsweredAssumed Answered

HAL_RTC_SetTime Timeout

Question asked by GeorgeP on Jun 22, 2015
Latest reply on Jun 22, 2015 by GeorgeP
Hello,

HAL_RTC_SetTime fails when trying to set new values on the RTC due to 
RTC_EnterInitMode timeout.

while((hrtc->Instance->ISR & RTC_ISR_INITF) == (uint32_t)RESET)
{
     if((HAL_GetTick() - tickstart) >  RTC_TIMEOUT_VALUE)
     {       
          return HAL_TIMEOUT;
     
}


During init (MX_RTC_Init) HAL_RTC_SetTime is successful.

STM32L151RD
CubeMX 4.8.0
L1 Library 1.2.0
LCI RC @ 37kHz configured by SystemClock_Config()

Any clues?
Thanks!

George


Outcomes