cancel
Showing results for 
Search instead for 
Did you mean: 

How to make the RTC still operate after the main power is powered off?

Pohua0413
Visitor

I use the internal RTC with MCU P/N:STM32U575.
The schematic has two power supplies,RTC uses the VBAT power supply, others use the main power supply.
My problem is that the RTC can count time normally, but when the main power is powered off and VBAT is continuously powered, the RTC will be cleared and reloaded for me to set the time after the main power is restart.
How to make the RTC still operate after the maim power is powered off?

1 REPLY 1
STTwo-32
ST Employee

Hello @Pohua0413 and welcome to the ST Community 😊.

According to the reference manual RM0456, to keep the RTC working on Vbat mode, you have to select the LSE as a Clock source for the RTC.

Best Regards.

STTwo-32 

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.