Page 1 of 1

ESP32-P4 RTC with Backup Battery – How to Enable and Use?

Posted: Tue Aug 26, 2025 1:25 pm
by Sudheesh
Hi everyone,

I’m new to ESP32 and currently working with the ESP32-P4 on a custom board. I want to use the RTC with a backup battery so that it keeps running when the main power is removed.

VBAT is connected to a CR1220 backup battery.

RTC_POWER is routed through resistors R115 (0Ω).

I’ve connected VBAT to the chip as shown in the ESP32-P4 datasheet.

My questions:

How can I enable and use the RTC with battery backup on the ESP32-P4?

Are there any example codes available for reading/writing the RTC time and checking if it retained time after power loss?

Do I need to configure any special registers or settings for RTC backup mode?

Any guidance, example code, or reference documentation would be helpful.

Here’s my schematic for the RTC section attached below :

Re: ESP32-P4 RTC with Backup Battery – How to Enable and Use?

Posted: Fri Oct 03, 2025 2:12 pm
by Sudheesh
Anyone know about this? Please reply.