Search found 1 match

by dorry3
Sun Jun 19, 2022 5:26 am
Forum: ESP32 Arduino
Topic: ESP32-C3 EEPROM.C write NVS storage not work
Replies: 2
Views: 3013

ESP32-C3 EEPROM.C write NVS storage not work

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!
samplewrite.zip
(669 Bytes) Downloaded 293 times