I've started working on a new custom ESP32S3 board and I'm stuck on an esp-littlefs issue.
Basically the library is unable to format its dedicated flash partition; the example (https://github.com/joltwallet/esp_littl ... er/example) outputs the following error:
Code: Select all
Demo LittleFs implementation by esp_littlefs!
https://github.com/joltwallet/esp_littlefs
This is esp32s3 chip with 2 CPU cores, WiFi/BLE, silicon revision 1, 2MB external flash
Free heap: 389312
Now we are starting the LittleFs Demo ...
I (293) demo_esp_littlefs: Initializing LittleFS
E (293) esp_littlefs: /home/maldus/Source/Github/esp_littlefs/src/littlefs/lfs.c:1224:error: Corrupted dir pair at {0x0, 0x1}
W (303) esp_littlefs: mount failed, (-84). formatting...
W (353) esp_littlefs: /home/maldus/Source/Github/esp_littlefs/src/littlefs/lfs.c:1887:warn: Superblock 0x0 has become unwritable
E (353) esp_littlefs: Failed to format filesystem
E (353) esp_littlefs: format failed
E (363) esp_littlefs: Failed to initialize LittleFS
E (363) demo_esp_littlefs: Failed to mount or format filesystem
The two modules I've used have the following hardware configuration:
Code: Select all
# Configuration of the board that doesn't work
esptool.py v4.5.1
Serial port /dev/ttyUSB0
Connecting....
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:3c:c8:18
Uploading stub...
Running stub...
Stub running...
Manufacturer: c2
Device: 8039
Detected flash size: 32MB
Flash type set in eFuse: octal (8 data lines)
# Configuration of the board that works
esptool.py v4.5.1
Serial port /dev/ttyACM0
Connecting...
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 70:04:1d:ad:8f:b8
Uploading stub...
Running stub...
Stub running...
Manufacturer: ef
Device: 4018
Detected flash size: 16MB
Flash type set in eFuse: quad (4 data lines)
Hard resetting via RTS pin...