2017-05-22 12:01 PM
I'm working with the latest update of the HAL drivers for the STM32F446RET6.
I want to use the RTC in my project and display the time on a display. The first call of HAL_RTC_GetTime works flawless and returns the current time. But after this, the time doesn't update anymore. The time get's updated in the register and gets displayed correctly after a reset of the controller but it doesn't update on screen.
It was working on the HAL version 1.13.1 without any problem.
2017-05-22 02:53 PM
From RCC chapter of RM, Reading the calendar subchapter:
When BYPSHAD control bit is cleared in the RTC_CR register
[...]
To ensure consistency between the 3 values, reading either RTC_SSR or
RTC_TR locks the values in the higher-order calendar shadow registers until RTC_DR isread.?
JW