cancel
Showing results for 
Search instead for 
Did you mean: 

RTC is not incremented with a voltage Vbat below 0.6V

Mickael_Biyotee
Associate

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

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
TDK
Guru

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".
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

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