Page 1 of 1

Is there an area in esp32 where data is not lost until the device is powered off?

Posted: Wed Dec 14, 2022 6:21 am
by Vincent zhang
I have some important data that is periodically updated and I want to store it, but I don't want to store them directly on the flash, because this will affect the service life of the flash.
Therefore, I would like to know if esp32 has such a storage area, when the program restarts or crashes, the data is not lost until the device is powered off.

Re: Is there an area in esp32 where data is not lost until the device is powered off?

Posted: Thu Dec 15, 2022 1:37 am
by ESP_Sprite
You should be able to use the RTC_NOINIT_ATTR on a variable to achieve this.