2024-02-02 06:19 AM
Hello,
we use an STM32WB55 with an RTC backup via a super capa.
when the Vbat voltage drops below 0.6V, the RTC registers are no longer incremented.
if the board reboots at this point, we have a datetime offset.
is it possible to detect this problem when the STM32WB55 starts up?
thank you in advance for your help
Solved! Go to Solution.
2024-02-02 07:02 AM
Hello,
You can use ADC in watchdog mode:
2024-02-02 06:35 AM
Measure the VBAT voltage on startup with the ADC and, if it was below the threshold, require that the RTC be reset.
2024-02-02 07:02 AM
Hello,
You can use ADC in watchdog mode:
2024-02-06 06:10 AM
Thanks for your answers.
I added reading VBat at CPU startup and resetting the RTC if necessary and it works very well.