ESP32-S3 RTC memory

cartoon
Posts: 5
Joined: Fri Feb 17, 2023 5:53 pm

ESP32-S3 RTC memory

Postby cartoon » Fri Feb 17, 2023 6:00 pm

Hi,
I'm testing out an ESP32-S3 dev-kit, and I'm noticing that data within RTC fast+slow memory are being cleared when I press the reset button on the board. Is it possible to make the memory persist when I reset via the button?
I recall being able to externally reset an ESP8266 without losing RTC memory contents.
Is there any work arounds to this so I can the ESP32 to handle RTC memory like the ESP8266 did?
Thanks

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-S3 RTC memory

Postby ESP_Sprite » Sat Feb 18, 2023 12:33 am

Technically, no. The reset input on the chip powers down everything, including RTC memory, meaning that when the power comes back up, the RTC memory is likely to be corrupted. That's why ESP-IDF clears it when it detects a reset. The ESP8266 has the same issue but I think the SDK doesn't clear it, meaning whatever corruption sneaked in needs to be handled by the user.

cartoon
Posts: 5
Joined: Fri Feb 17, 2023 5:53 pm

Re: ESP32-S3 RTC memory

Postby cartoon » Tue Feb 21, 2023 3:14 pm

I see. Could you point me in the direction of where that would be happening in the SDK?
My hope was to use an external microcontroller to toggled the EN pin really quickly without affecting the RTC memory.

It's off-topic, but I learned through experience that the ESP8266 (ESP-WROOM-02) could go "off the rails" due to unstable power conditions, and never recover even though it has a watch dog timer. Is it possible that the ESP32-S3 could fall into an unresponsive state due to the built in brown-out detector or watch dog timer failing to kick in? If that isn't a possibility on the ESP32-S3 then I won't need to incorporate an external reset source.

Who is online

Users browsing this forum: No registered users and 70 guests