Associate II
February 19, 2019
Question
How does it come the RTC shows a time like 33:27 left alone over night?
- February 19, 2019
- 2 replies
- 1023 views
STM32F446 RTC
I seem to have a problem with this part of the MCU.
I am using the HAL to retrieve date and time.
Yesterday evening I set the time (about 22h something).
Time was displayed correctly.
Today in the morning I have a time of 33h27 retreived by HAL_RTC_GetTime.
Looking into the RTC registers that is exactly the value that comes from the RTC.
And it keeps counting like this.
Time is correct if you would subtract 24hrs.
Calender was not updated (no day rollover).
Any idea how that would happen that the RTC registers will not wrap around the 24hrs mark?
And Yes, I do a HAL_RTC_GetDate after reading the time =)
rgds