2020-07-07 10:39 AM
Hi,
In one of my task, i just increment a one seconds counter variable after read HAL_RTC_GetTime and compare the read seconds value is change or not. It doesn't work until I comment the following line in the HAL_RTC_GetTime function as described in one thread in the forum. What is the cause? How do I resolve this issue ? Thanks in advance.
sTime->SubSeconds = (uint32_t)(hrtc->Instance->SSR);
Thanks,
Param.
2020-07-07 10:47 AM
2020-07-07 10:16 PM
As Piranha said above: read date after reading time, or set RTC->CR.BYPSHAD.
JW
2020-07-28 08:41 AM
Thank you. It solved my issue.