• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

LittleFS Tutorial

Q&A Forum › Category: ESP32 › LittleFS Tutorial
0 Vote Up Vote Down
Richard Funnell asked 2 years ago

Hi, Will the ESP32 LittleFS work on PlatformIO the same way as the SPIFFS tutorial you did.
 
Many thanks

8 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
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.
 
Regards,
Sara

0 Vote Up Vote Down
Richard Funnell answered 2 years ago

Many thanks Sara, I will give a go.

0 Vote Up Vote Down
Richard Funnell answered 2 years ago

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.
/test_example.txt
[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

esptool.py v4.5.1
Serial port COM3
Connecting……
Chip is ESP32-D0WDQ6 (revision v1.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 58:bf:25:9f:b6:98
Uploading stub…
Running stub…
Stub running…
Changing baud rate to 921600
Changed.
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.
 
Leaving…
Hard resetting via RTS pin…

 
What did I do wrong?
I am using the latest 1.8.19 Arduino ide
many thanks

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
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.

Regards,
Sara

0 Vote Up Vote Down
Richard Funnell answered 2 years ago

Hi Sara,
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.

0 Vote Up Vote Down
Richard Funnell answered 2 years ago

Hi Sara,
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
 

0 Vote Up Vote Down
Richard Funnell answered 2 years ago

HI Sara,
Have managed to get it working…
Went to this page and downloaded this esp32fs.zip
https://github.com/lorol/arduino-esp32fs-plugin/releases
Which is Feb 2021 and it works..
 
many thanks 

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

But that’s exactly the link that we share in the tutorial…
 
 
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.