Skip to main content
Associate II
February 2, 2024
Solved

RTC is not incremented with a voltage Vbat below 0.6V

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

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
February 2, 2024

Hello,

You can use ADC in watchdog mode:

SofLit_1-1706886060092.png

SofLit_2-1706886140321.png

 

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

3 replies

TDK
February 2, 2024

Measure the VBAT voltage on startup with the ADC and, if it was below the threshold, require that the RTC be reset.

"If you feel a post has answered your question, please click ""Accept as Solution""."
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
February 2, 2024

Hello,

You can use ADC in watchdog mode:

SofLit_1-1706886060092.png

SofLit_2-1706886140321.png

 

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Associate II
February 6, 2024

Thanks for your answers.
I added reading VBat at CPU startup and resetting the RTC if necessary and it works very well.