Skip to content

littlefs won't flash/get created on ESP32 with 16MB (but works with 4MB) #9

Open
@marcmerlin

Description

@marcmerlin

I have this:

Archive:  /home/merlin/arduino/tools/ESP32FS/tool/esp32fs.jar
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2021-02-02 11:40 00000000  com/
       0  Stored        0   0% 2021-02-02 11:40 00000000  com/esp32/
       0  Stored        0   0% 2021-02-02 11:40 00000000  com/esp32/mkspiffs/
    1261  Defl:N      671  47% 2021-02-02 11:40 d4df75c5  com/esp32/mkspiffs/ESP32FS$1.class
   15097  Defl:N     7298  52% 2021-02-02 11:40 8f41da8a  com/esp32/mkspiffs/ESP32FS.class
    1093  Defl:N      643  41% 2021-02-02 11:40 b09e3092  com/esp32/mkspiffs/StreamGobbler.class

sauron [mc]$ pwd
/home/merlin/arduino/hardware/espressif/esp32/tools/mklittlefs
sauron [mc]$ ./mklittlefs --version

./mklittlefs  version: 0.2.3-27-gc41e51a

I think I narrowed it down to 4MB of flash vs 16MB of flash. When I have a 4MB chip and use "Huge APP (3MB No OTA/1MB SPIFFS)", it works and I can flash littlefs using the same menu
When I change only the flash size from 4MB to 16MB, and keep the same partitioning, I get

LittleFS Error: partition size could not be found!

and that's using the same exact partition scheme, just changing the flash size. That would explain why the partitioning for 16MB flash, doesn't work

I tried to make a custom 16MB SPIFFS partition and that fails too (that same partition works with FatFS using the same /esp32fs.jar):

nvs,      data, nvs,     0x9000,  0x5000,
otadata,  data, ota,     0xe000,  0x2000,
app0,     app,  ota_0,   0x10000, 0x200000,
app1,     app,  ota_1,   0x210000,0x200000,
spiffs,   data, spiffs,  0x410000,0xBEF000,

and a custom entry in boards.txt that points to that file, but I get

Using partition scheme from Arduino IDE.
LittleFS Error: partition size could not be found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions