ESP32-C3 EEPROM.C write NVS storage not work
Posted: Sun Jun 19, 2022 5:26 am
I use below code write to NVS ESP32-C3
EEPROM.begin(2048)
int val = byte(random(10020));
EEPROM.writeInt(1,val);
Serial.printf("Read At 1 boot: %d\n", EEPROM.readInt(1));// return value is normal
but power off or reset,data lost!
but above code in esp32 is all ok!
EEPROM.begin(2048)
int val = byte(random(10020));
EEPROM.writeInt(1,val);
Serial.printf("Read At 1 boot: %d\n", EEPROM.readInt(1));// return value is normal
but power off or reset,data lost!
but above code in esp32 is all ok!