RTC not working after Cube IDE update 1.17
- January 24, 2025
- 6 replies
- 3331 views
Hello,
My STM32L476RG Nucleo board does not read out the RTC time after i updated cube IDE to 1.17
When calling "HAL_RTC_GetTime" the subtask in "stm32l4xx_hal_rtc.c" sTime->Hours = (uint8_t)((tmpreg & RTC_TR_HT|RTC_TR_HU))>>RTC_TR_HU_Pos); the current time is NOT written into the sTime.Hours or Minutes. The MCU stucks with the current value that it got during a reset. Interestingly when doing a reset the value changes to the real internal time that ran when the supply is not removed.
When i go to "Debug" i can read out the MCU registers TR,HU,.... and when i am watching into that registers, the MCU works normally and writes the sTime.Minutes and Hours correctly.
Does anybody know why the MCU does not get the Time data, only when reseting or "debugging the registers"?
