static uint8_t mem[512];
void RTCMemoryTest1() {
sdk_system_rtc_mem_read(0x00, &mem[0], 512);
for (int i=0; i<= 511; ++i) {
printf("MEM %d: %d\n", i, mem[i]);
mem[i] = i;
}
sdk_system_rtc_mem_write(0x00, &mem[0], 512);
sdk_system_deep_sleep(1000000);
vTaskDelay(100000);
}
This function I call it inside my main.
After a reset of the system, I see that it can preserve the data in the RTC memory but not all of them.
The first 32 bytes (address 0 to 31) are not preserved. Also, bytes from 248 to 251 and bytes from 256 to 264 are not preserved too.
Can someone verify my findings?
Also is somewhere on internet any Espressif document that states something like that? I can not find something myself.
Thank you very much.