LittleFS.format() crashes ESP32 #16

Closed
opened 2024-10-17 19:05:06 +02:00 by DeltaLima · 1 comment
Owner

when calling LittleFS.format() esp32 d1 mini crashes. ESP8266 D1 mini clone works fine.

Using Arduino Core esp32-arduino 3.0.5 https://github.com/espressif/arduino-esp32/releases/tag/3.0.5 and LittleFS it is already containing https://github.com/espressif/arduino-esp32/tree/3.0.5/libraries/LittleFS

assert failed: esp_littlefs_format esp_littlefs.c:474 (partition_label)

Backtrace: 0x40083571:0x3ffb2040 0x40088365:0x3ffb2060 0x4008d2bd:0x3ffb2080 0x400e1c83:0x3ffb21b0 0x400d2ba9:0x3ffb21f0 0x400d1a0a:0x3ffb2210 0x400d4d3a:0x3ffb2290
when calling `LittleFS.format()` esp32 d1 mini crashes. ESP8266 D1 mini clone works fine. Using Arduino Core esp32-arduino 3.0.5 https://github.com/espressif/arduino-esp32/releases/tag/3.0.5 and LittleFS it is already containing https://github.com/espressif/arduino-esp32/tree/3.0.5/libraries/LittleFS ``` assert failed: esp_littlefs_format esp_littlefs.c:474 (partition_label) Backtrace: 0x40083571:0x3ffb2040 0x40088365:0x3ffb2060 0x4008d2bd:0x3ffb2080 0x400e1c83:0x3ffb21b0 0x400d2ba9:0x3ffb21f0 0x400d1a0a:0x3ffb2210 0x400d4d3a:0x3ffb2290 ```
Author
Owner
    #ifdef ESP32
    LittleFS.begin();
    #endif
    LittleFS.format();

fixed it.

``` #ifdef ESP32 LittleFS.begin(); #endif LittleFS.format(); ``` fixed it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: DeltaLima/CanGrow#16
No description provided.