You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started to use the RTC backup registers on Nucleo F401 with the HAL library, but notice that if I set the time with mbed, my data is also erased - mbed's set_time() in rtc_time.c calls rtc_init() before rtc_write().
However STM32F4's (& I suppose others) rtc_init() in rtc_api.c erases the backup registers. If I comment out
Is there a reason those lines are there? After all, mbed api doesn't use the backup registers, and they appear to be reset anyway on power-up with no separate coin-cell Vbat present.