cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid 1 second delay in RTC every power off/on.

Joan Duran
Associate II
Posted on January 03, 2018 at 10:44

Hi again,

I'm using an RTC as I explained in

https://community.st.com/0D50X00009XkWttSAF

.

Our device have a battery in VBAT, so the RTC still works when the device it's power off. But after a power on the RTC can loss up to 1 second, I think due we configure the RTC again.

Using backup registers we can detect if we come for the first power on (and we have to configure the RTC) or not (and maybe we can avoid configuring the RTC).

How we can avoid this delay? Which should be the configuration of the RTC in the second case?

Thank you!

#rtc
12 REPLIES 12
Posted on January 09, 2018 at 03:30

So shall we call this a bug in the HAL initialization code that the call to

if (HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR0) != 0x32F2) {

happens too late?

Posted on May 10, 2018 at 15:25

Hello,

Our developer team work to fix this issue for HAL RTC in the coming releases.

Sorry for such inconvenience.

Best Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
WKose
Associate

Hi,

any updates on HAL RTC?

Sincerely,

Wojciech