Hi, Will the ESP32 LittleFS work on PlatformIO the same way as the SPIFFS tutorial you did.
I haven’t tried it with PlaformIO.
I think it works the same, but you need to specify on the plaformio.ini file that you want to use littlefs.
You need to add the following line to the platformio.ini file:
board_build.filesystem = littlefs
You can find more information here: https://community.platformio.org/t/esp32-little-fs-implementation/28803
I hope this helps.
Ok, I thought I would try using Arduino 1.8.19 first, and follow the tutorial
ESP32: Upload Files to LittleFS using Arduino IDE
The problem I found was that it didn’t give me a choice when Clicking on “ESP32 Sketch Data Upload“. Click on that option. A window will pop up for you to choose the filesystem you want to use. There was No choice..
But it DID upload but under SPIFFS.
[SPIFFS] upload : C:\Users\Richard\AppData\Local\Temp\arduino_build_459303/ESP32_Test_LittleFS_Upload.spiffs.bin
[SPIFFS] address: 2686976
[SPIFFS] port : COM3
[SPIFFS] speed : 921600
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
Serial port COM3
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
Changing baud rate to 921600
Configuring flash size…
Auto-detected Flash size: 4MB
Flash will be erased from 0x00290000 to 0x003effff…
Compressed 1441792 bytes to 2793…
Writing at 0x00290000… (100 %)
Wrote 1441792 bytes (2793 compressed) at 0x00290000 in 7.7 seconds (effective 1506.8 kbit/s)…
Hash of data verified.
Hard resetting via RTS pin…
What did I do wrong?
I am using the latest 1.8.19 Arduino ide
When you go the the following location (see picture below), make sure you deleted any previous esp32fs.jar that you might already have from SPIFFS. Additionally, you may have other arduino ide installation and you might be adding that file to the wrong location.
You might also have another tools folder in another location that has the old esp32fs.jar and not the new one.
I have scanned my pc and I have only one esp32fs.jar file which I have put into below.
All my sketches are in Documents\Arduino\Sketches\
I created a Tools folder, Downloaded the latest Esp32fs-1.1.zip file and put the .jar file as below.
‘This pc\ documents\arduino\sketches\tools\esp32\tool\esp32fs.jar’
(Tried to send picture but failed)
(I checked the “Tools” menu before I did this and there was no ESP32 Sketch Data Upload on the menu).
Now I have:
ESP32 Sketch Data Upload on the menu with WiFi 101
(again can’t send picture)
There is still no option for me to select a different file system?
Not sure why? It still saves the data as SPIFFS?
I noticed your esp32fs.jar has a date of 06/22/2023
can you help to see what I have done wrong please.
I have also removed 1.8.19 and only running now 1.8.13 to stop any confusion.
I have just loaded Arduino 1.8.13 on a laptop, Loaded ESP32 Board, and added to the preference file, and followed the Tutorial, loading the ESP32FS.jar etc.
Tried the upload, it still gave me no option, and uploaded in SPIFFS format??
So I have no idea what’s going on..
Is there something I am missing
Have managed to get it working…
Went to this page and downloaded this esp32fs.zip
Which is Feb 2021 and it works..