Hello,
I tried to implement the littleFS to an ESP32 project without succes.
I use the loro git littlefs implementation, I build the file system (with a file in data), I upload the filesystem image to my esp32, and I test it with a sample program but I get every time a " begin(): Mounting LITTLEFS failed! Error: -1
Does anyone have a sample prog that run on ESP32 ? (I use to run littlefs on esp8266 correctly)
thank you
Multinet.
No – since some time now, Arduino-ESP32 and the Espressif32 integration have native LittleFS support with the library built-in to the core and native PIO support.
As a first try, please use the platformio.ini
[env:esp32dev]
platform = espressif32
framework = arduino
board = esp32dev
board_build.filesystem = littlefs
with this src/main.cpp
and this data folder. Use the “Upload File System image” project task as normal to build + upload the LittleFS image, then “Upload & monitor” the firmware.
1 Like
Hello
thank youfor taking the time to answer me
I do what to recommand but I get this error : “src/main.cpp:3:22: fatal error: LittleFS.h: No such file or directory”
Is your Espressif 32 platform up-to-date? Please open a CLI and execute
pio pkg update -g -p espressif32
and retry.
1 Like