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!
ESP32-C3 EEPROM.C write NVS storage not work
-
- Posts: 831
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32-C3 EEPROM.C write NVS storage not work
Known bug; will be fixed in 2.0.4. Set flash mode to QIO.
-
- Posts: 2
- Joined: Wed Jul 06, 2022 1:11 pm
Re: ESP32-C3 EEPROM.C write NVS storage not work
I got that to work in Arduino, but not in PlatformIO.
My platformio.ini:
My platformio.ini:
Code: Select all
[env:adafruit_qtpy_esp32c3]
platform = espressif32
board = adafruit_qtpy_esp32c3
framework = arduino
board_build.flash_mode = qio
Who is online
Users browsing this forum: No registered users and 80 guests