• 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

RNT Tutorial – ESP32: Upload Files to LittleFS using Arduino IDE

Q&A Forum › Category: Arduino › RNT Tutorial – ESP32: Upload Files to LittleFS using Arduino IDE
0 Vote Up Vote Down
Paul D. Wilkie asked 3 months ago

While working with the RNT Tutorial – ESP32: Uploae FIless tp L:ittleFS using Arduino IDE I noted a possible issue with the step to add esp32fs.jar to the Tool folder:
C/User/Paul/Documents/Arduino/tools/ESP32FS/tool/esp32fs.jar
When I had added  the step above to include the additinoal tool folder; I then opened the Arduino IDE and the sletch Filesystem_uploader.ino. As directed, I selected Tools, then selected ES32 Sketch Data Upload.
However, I never saw the Filesystem screen with the list if Filesystems below:
ESP32 Filesystem uploader Arduino IDE choose filesystem
I do have those  Libraries listed in my Library folder, any idea as to why they don’t appear, instead the sketch immeditantely compiles, uploads and returns Hash of data verified.

I closed the com to the micro and when I returned and powered up the micro only, the Serial Monitor returned the following error message:

19:48:08.157 -> E (103) psram: PSRAM ID read error: 0xffffffff
19:48:08.191 -> Filesystem_uploader.ino
19:48:08.191 -> 02/17/2025
19:48:08.191 -> E (133) esp_littlefs: ./components/esp_littlefs/src/littlefs/lfs.c:1367:error: Corrupted dir pair at {0x0, 0x1}
19:48:08.225 ->
19:48:08.225 -> E (134) esp_littlefs: mount failed, (-84)
19:48:08.225 -> E (138) esp_littlefs: Failed to initialize LittleFS
19:48:08.225 -> An Error has occurred while mounting SPIFFS

Question Tags: #ESP32 #LittleFS
7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi
Which version of the Arduino ide are you using?
Regards
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 3 months ago

Hello Sara, I am working with Arduino IDE Ver: 1.8.12.
I have an older PC that runs WIN 8.1, which can not be upgraded?

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
I think you can use Arduino 2.0 on thar computer. You have to try it.
 
But, don’t you see the Filesystem Uploader command in the tools menu?
What options appear in your Tools menu? Can you show me a printscreen?
 
Regards,
Sara

0 Vote Up Vote Down
Paul D. Wilkie answered 3 months ago

Hello Sara, excuse my delay in returning your response, lots of things going on in our household!
No, my old PC can not upgrade to WIN 10, stuck with WIN 8.1??
Any way, the issue I am seeing happens when about I would be uploading a file with LittleFS, as the tutirial RNT Tutorial – ESP32: Uploae FIless tp L:ittleFS using Arduino IDE I noted a possible issue with the step to add esp32fs.jar to the Tool folder:
ESP32 Filesystem uploader Arduino IDE choose filesystem
After I have selected the Tools menu,
I selected the ESP32 Sketch Data Upload tab;
Instead of opening the screen above, the sketch imediately returns the following message;
[SPIFFS] upload : C:\Users\Paul\AppData\Local\Temp\arduino_build_377234/Filesystem_uploader.spiffs.bin
[SPIFFS] address: 2686976
[SPIFFS] port : COM9
[SPIFFS] speed : 921600
[SPIFFS] mode : dio
[SPIFFS] freq : 80m
esptool.py v4.5.1
Serial port COM9
Connecting….
Chip is ESP32-D0WDQ6-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: c4:4f:33:7f:9b:dd
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 949825…
Writing at 0x00290000… (1 %)
 
Edited out to save space
 
Writing at 0x003e9899… (100 %)
Wrote 1441792 bytes (949825 compressed) at 0x00290000 in 12.1 seconds (effective 953.4 kbit/s)…
Hash of data verified.
Leaving…
Hard resetting via RTS pin…
Why didn’t box did not appear to select LittleFS, instead it simply used SPIFFS process? 
ESP32 Filesystem uploader Arduino IDE choose filesystem
I would attache a screenshot, however I don’t see how to provide the dementions field input to use the forum’s Inset,edit Image () process?

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
Are you using this release file? https://github.com/lorol/arduino-esp32fs-plugin/releases ?
Which release file are you using?
Regards,
Sar

0 Vote Up Vote Down
Paul D. Wilkie answered 3 months ago

I upgraded to the latest arduino-esp32-plugin/releases dated 04 Feb 02:54; I assume the date refers to 2025?
No change on seeing this screen when selecting the following;
After I have selected the Tools menu,
I selected the ESP32 Sketch Data Upload tab;
 
ESP32 Filesystem uploader Arduino IDE choose filesystem
Also, now this is the results on the Serial Monitor:
16:59:00.956 -> Filesystem_uploader.ino
16:59:00.956 -> 02/17/2025
16:59:00.956 -> E (9) esp_littlefs: ./components/esp_littlefs/src/littlefs/lfs.c:1367:error: Corrupted dir pair at {0x0, 0x1}
16:59:00.956 ->
16:59:00.956 -> E (10) esp_littlefs: mount failed, (-84)
16:59:00.990 -> E (14) esp_littlefs: Failed to initialize LittleFS
16:59:00.990 -> An Error has occurred while mounting SPIFFS
Is there a process to allow to attach screehshots?
Paul

0 Vote Up Vote Down
Sara Santos Staff answered 3 months ago

Hi.
It’s difficult to tell what might be wrong.
I suggest trying with a new installation of Arduino IDE. It sseems you may have some folders messe up or the littleFS file corrupted.
 
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.