ESP32-C3 Preferences and NVS storage not work
Posted: Mon Jun 13, 2022 11:46 pm
Hello,
I have a Adafruit QT Py ESP32-C3 development board. I am trying to save data between resets by using flash (NVS) to store data.
Using the ESP Preferences library example ( https://github.com/espressif/arduino-es ... ounter.ino) I get the following output:
As you can see, the counter should increase on each successive reboot but it does not. This sketch works on the other standard ESP32 boards I have. Is this something peculiar to the C3 version of the ESP32 chip and the RISC-V core?
Please help! I need to store data for the project i am working on.
Thanks!
I have a Adafruit QT Py ESP32-C3 development board. I am trying to save data between resets by using flash (NVS) to store data.
Using the ESP Preferences library example ( https://github.com/espressif/arduino-es ... ounter.ino) I get the following output:
Code: Select all
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403816f2
SPIWP:0xee
mode:DOUT, clock div:1
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6ac
load:0x403d0000,len:0x2464
SHA-256 comparison failed:
Calculated: ae4b6389c51bca37025d68f98f30f6e4b83b375cef091401f27fa9596bdb9ddf
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403ce000
Current counter value: 1
Restarting in 10 seconds...
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
Saved PC:0x403816f2
SPIWP:0xee
mode:DOUT, clock div:1
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6ac
load:0x403d0000,len:0x2464
SHA-256 comparison failed:
Calculated: ae4b6389c51bca37025d68f98f30f6e4b83b375cef091401f27fa9596bdb9ddf
Expected: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Attempting to boot anyway...
entry 0x403ce000
Current counter value: 1
Restarting in 10 seconds...
Please help! I need to store data for the project i am working on.
Thanks!