Closed
Description
Board
ESP32-C3-DevKitC-02
Device Description
Using ESP32-C3-DevKitC-02
Hardware Configuration
Nothing attached to gpio's
Version
latest development Release Candidate (RC-X)
IDE Name
Arduino & PIO
Operating System
Win 10
Flash frequency
80
PSRAM enabled
no
Upload speed
921600
Description
Example Spiffs, ffat & nvs issues with esp32c3 after commit 8ee5f0a. All examples work correctly in 2.0.2 up to commit 8ee5f0a
Sketch
Example SPIFFS and FFAT in latest master (ffat using default_ffat.csv) all else using default.csv
Debug Message
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6a8
load:0x403d0000,len:0x2358
SHA-256 comparison failed:
Calculated: 4ab8657f6f5aa80b81c7dd649db3bd64a98999ed7c65acc5a2ab77ce80caf525
Expected: 6babbc7b9ea63e04e0fc89ec224f6268aa3f84392018f73ab33721f768ce2eb6
Attempting to boot anyway...
entry 0x403ce000
[ 1336][E][FFat.cpp:60] begin(): Mounting FFat partition failed! Error: -1
FFat Mount Failed
Same issues with SPIFFS
All example code works in releases previous to 8ee5f0a
Only changing commit head between tests. Have used get.py in tools.
Have also used latest Arduino, using 2.0.3-rc1 and 2.0.2. Same outcome.
With 2.0.3-rc1, other libraries and code work without issue.
No compile errors. Only err's when trying to access flash from code. e.g. (nvs, spiffs etc.)
Using Arduino latest, littlefs also failed to mount with rc1, same as https://github.com/espressif/arduino-esp32/issues/6579
Other Steps to Reproduce
Using ESP32-C3-DevKitC-02 and Lolin C3 mini. Using example code from repository.
I believe the issue is similar to #6572 and #6579
Using latest Arduino IDE, littlefs also fails to mount with rc1, same as #6579
ESP-ROM:esp32c3-api1-20210207
Build:Feb 7 2021
rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd6100,len:0x38c
load:0x403ce000,len:0x6a8
load:0x403d0000,len:0x2358
SHA-256 comparison failed:
Calculated: 4ab8657f6f5aa80b81c7dd649db3bd64a98999ed7c65acc5a2ab77ce80caf525
Expected: 6babbc7b9ea63e04e0fc89ec224f6268aa3f84392018f73ab33721f768ce2eb6
Attempting to boot anyway...
entry 0x403ce000
./components/esp_littlefs/src/littlefs/lfs.c:1071:error: Corrupted dir pair at {0x0, 0x1}
E (115) esp_littlefs: mount failed, (-84)
E (116) esp_littlefs: Failed to initialize LittleFS
./components/esp_littlefs/src/littlefs/lfs.c:1790:debug: Bad block at 0x0
./components/esp_littlefs/src/littlefs/lfs.c:1796:warn: Superblock 0x0 has become unwritable
E (6481) esp_littlefs: Failed to format filesystem
[ 6481][E][LittleFS.cpp:119] format(): Formatting LittleFS failed! Error: -1
[ 6488][E][LittleFS.cpp:94] begin(): Mounting LittleFS failed! Error: -1
LittleFS Mount Failed
Reverting to any commit prior to 8ee5f0a, all example code involving flash read/write work as expected.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.