LittleFS : cannot upload

christianw
Posts: 7
Joined: Fri Apr 21, 2023 8:55 am

LittleFS : cannot upload

Postby christianw » Fri Apr 21, 2023 9:09 am

Hello,
I am trying to use littleFS with a web server on ESP32.

It is an ESP32-S3-WROOM from freenove, the dev computer is a linux debian 11, IDE 1.8.13 and 2.1.0

The example provided with the littleFS library works, that's something. In comment of the example there is :

Code: Select all

/* You only need to format LittleFS the first time you run a
   test or else use the LITTLEFS plugin to create a partition
   https://github.com/lorol/arduino-esp32littlefs-plugin
   
   If you test two partitions, you need to use a custom
   partition.csv file, see in the sketch folder */
I didn't format anything, but the example works. I guess everything is OK
I followed the link to try to install the plugin, the readme.md starts with

Please use the universal combined plugin for all FS instead of this one.

so I followed that second link and followed, I think, the instructions. But the tools menu doesn't match the capture in the tutorial: https://raw.githubusercontent.com/lorol ... r/tool.png

On my IDE, I have the capture below. By the way, no mention of LittleFS in the Partition Scheme submenu.

Image

I read elsewhere :

If missing, you need to copy mkfatfs[.exe] to /tools folder of esp32 platform where espota and esptool (.py or.exe) tools are located

How should I understand this? I have

mklittelfs in ~/.arduino15/packages/esp32/tools/mklittlefs/3.0.0-gnu12-dc7f933/
esptool.py in ~/.arduino15/packages/esp32/tools/esptool_py/4.5.1/
espota.py in ~/.arduino15/packages/esp32/hardware/esp32/2.0.8/tools

I put everything in the ~/.arduino15/packages/esp32/hardware/esp32/2.0.8/tools directory

but without effect :-(

What else can I do?

Christian
(I'm french, so thanks to DeepL ;-) )

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: LittleFS : cannot upload

Postby lbernstone » Sat Apr 22, 2023 6:03 pm

The plugin will not work in Arduino IDE 2.0 for the moment.
In 1.8, place the jar file in ~/Arduino/tools/ESP32FS/tool. I'm not sure exactly where that folder is in Windows, but you can see where your sketchbook location is in Arduino preferences.
Close Arduino and reopen, then you should have "ESP32 Sketch Data Upload" in the tools menu.
I have the helper programs in that same tools folder.
Note well, file systems should only be used for user data (mp3, gcode, etc). Read only "files" should be embedded in your firmware as C-strings. Configuration data, including certificates, should be stored in NVS (aka Preferences).

christianw
Posts: 7
Joined: Fri Apr 21, 2023 8:55 am

Re: LittleFS : cannot upload

Postby christianw » Wed Apr 26, 2023 5:31 pm

lbernstone wrote:
Sat Apr 22, 2023 6:03 pm
In 1.8, place the jar file in ~/Arduino/tools/ESP32FS/tool.
That's fine ! Thanks a lot... I'll be back for further questions ;-)

Who is online

Users browsing this forum: Bing [Bot], brebisson, Google [Bot] and 87 guests