Unable to upload the LittleFS file system with platformIO

Hello everyone,

I was using SPIFFS and I moved to LittleFS.
Every thing works expect the data upload to my esp8266.
I can upload LittleFS with the arduinoIDE plugin “ESP8266LittleFS Data Upload”
but cannot succeed with platformIO.
My configutation is Core 5.0.3 Home 3.3.1
extract from my ini file :
platform = espressif8266@2.6.2
board = d1
framework = arduino
board_build.filesystem = LittleFS
board_build.ldscript = eagle.flash.4m2m.ld

when I start the upload with pio run --target uploadfs or with the menu task “Uplad File System Image” I got the following answers :

Processing d1 (platform: espressif8266@2.6.2; board: d1; framework: arduino)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1.html
PLATFORM: Espressif 8266 (2.6.2) > WEMOS D1 R1
HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash
 - framework-arduinoespressif8266 3.20704.5 (2.7.4)
 - tool-esptool 1.413.0 (4.13)        
 - tool-esptoolpy 1.20800.0 (2.8.0)   
 - tool-mklittlefs 1.203.200522 (2.3) 
 - tool-mkspiffs 1.200.0 (2.0)        
 - toolchain-xtensa 2.40802.200502 (4.8.2)
Converting myprog.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 91 compatible libraries
Scanning dependencies...
Dependency Graph
Building in release mode
Filesystem LittleFS is not supported!

So I am wondering why I got such an error “Little FS is not supported” ???
It should be supported since 2.6.0 if I am right?

Do you have a clue on such a problem ?
Is there something wrong in my configuration ?

Thanks a lot

You must use the correct names here as the documentation tells you. littlefs, not LittleFS.

The error message is thrown in the Espressif8266 platform code and here you can also see exactly why.

1 Like

Thank you Maxgerhardt ! That was the problem !
I was writting it like in the library.

Now I am able to uplad the data with pio run -t uploadfs,
however the menu command task “Uplad File System Image” disappeared from the PIO menu.
It should be under PROJECT TASKS /myenv/Plaform but Platform does not show up.

Any idea ?

Thanks again

No problems for me here.


Try the project task default → Miscellaneous → Rebuild IntelliSense index, then re-open VSCode.

What does does the list of platform tasks for your environment look like?

At might also be that you just need to press “Build” once to download that exact platform version.

Great !
Rebuiding the intelliSense index did the job

I can again see Platform with the “Uplad File System Image” command.

Looks good you solved my issues. Many thanks.