• 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 › RNT Tutorial – ESP32: Upload Files to LittleFS using Arduino IDE
0 Vote Up Vote Down
Larry asked 1 month ago

Sorry, need some help, don’t know where to start . Hours worked on this and still haven’t gotten it sorted out yet. After many tries I got the Little Fs to upload. Using Arduino 2.3.5 , loaded your code, using WemosD1R1, serial monitor closed and uploaded FS , have a text file in the data folder. Open serial monitor 115200 baud press reset garbage then  Don’t use etc men data.
Worked hours on this , seems very difficult to getting this far . Text file has a short message but nothing comes through the monitor. Also tried the download with issues also .
Also , data doesn’t show as a tab on program.

13 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Hi.
 
This may seem a tedious task. But, can you take a printscreen of each step of the process you’re doing? You’re probably doing something wrong, or skipping something important. And it’s hard to know without watching the complete process you’re doing.
 
Follow the instructions on the eBook and send me a printscreen of each of the steps. To share pictures, you can upload them to a folder in Google Drive and then share a link to the folder.
 
Regards,
 
Sara

0 Vote Up Vote Down
Larry answered 1 month ago

Thanks , I hate the feeling of being spoon fed and wasting your time of stuff like this. I understand what you want me to do , I will work on doing it over and over again and then if I need to I will send you the information . Just so you know what I was doing was to read the step by step on one computer and using another to work with Arduino thinking the same thing, missing a step ,Thanks

0 Vote Up Vote Down
Larry answered 1 month ago

So i think i followed it correctly, noticed that I can’t actually install that text file in that data folder ,it just copies to the directory. If I try to put it into the Data file it doesn’t like that either, sorry I am really lost here  seems simple enough ,what am i missing?

 

https://drive.google.com/file/d/11em9PlTQN49q_rbwQCTbs0cONw5YpPZT/view?usp=sharing, https://drive.google.com/file/d/13bXlXbfPx-UwZfrmvj2jYYduyLdfpusK/view?usp=sharing, https://drive.google.com/file/d/1ftvyc3OJcSafpVHQhD2oPVzEh-TONcdq/view?usp=sharing, https://drive.google.com/file/d/1gYkbXDEvHDrtLcO9Ih60h_WUriBx5h0_/view?usp=sharing, https://drive.google.com/file/d/1qy76YjsiS7klMnm5UDW5KZAe3L6t9Q9q/view?usp=sharing

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Hi.
Your test_example.txt file should be placed inside a folder called data. You need to create a folder inside your sketch folder sketch_apr8b called data and move the test_example.txt file into there.
Close the arduino IDE to do that if you’re having issues with moving the files.
 
Regards,
 
Sara
 

0 Vote Up Vote Down
Larry answered 1 month ago

I am having difficulties here,I have the directory set up ,I have the program and data but short of creating a folder into the data.ino I am unable to accomplish that .I’ve tried this with Arduino closed , I have been able to open up and add a new tab and other than  telling me that the data tab already exist , i have not been able to drop a folder into data or even just the text file .Will try to send photos

https://drive.google.com/drive/folders/1i8Im6u5eOxzwU_7fUhLSIjGC8L4wg2qE?usp=drive_link

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Hi.
Please read my answer.
You need to create a FOLDER called data, not a .ino file. And I haven’t mentioned any tab.
All the steps are clearly described in the eBook.

  • sketch_apr8b FOLDER:
    • sketch_apr8b.ino
    • data FOLDER
      • test_example.txt

I don’t know how to make this more clear.
 
Do you need me to send you some printscreens?
 
 
 
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

The last screenshot you’ve sent (26), you get the “Completed upload” message, which means the files inside the data folder were uploaded to the filesystem.
 
The file inside the data folder should have the right format .txt

0 Vote Up Vote Down
Larry answered 1 month ago

So evidently it was working the first several times i tried , kept thing that the txt file had to reside in the a data on the Arduino ,that’s why I was trying to get it into the program like that of a tab. So sorry for the misunderstanding, You are correct it worked and the program in the serial monitor gave me garbage , I was thinking I shold be able to read the message that was in the data folder, So I went to the next step and got 
c:/users/spark/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\spark\AppData\Local\arduino\cores\74ca1199c81622520a299dda9679a7b1\core.a(core_esp8266_main.cpp.o): in function `__loop_end’:
C:\Users\spark\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/core_esp8266_main.cpp:245: undefined reference to `loop’
c:/users/spark/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\spark\AppData\Local\arduino\cores\74ca1199c81622520a299dda9679a7b1\core.a(core_esp8266_main.cpp.o): in function `_ZL12loop_wrapperv’:

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Send me the complete error.
Are you using an ESP8266?

0 Vote Up Vote Down
Larry answered 1 month ago

Yes I am using a Wemos D1 mini . 8266 , how do I send you the complete error message? 

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Hi.
You can copy it directly from the IDE Output window.
Usually, when you get an error, a new button “Copy Error MEssages” will show up. You can use that too.
Regards,
Sara

0 Vote Up Vote Down
Larry answered 1 month ago

ok resolved the error messages on my side, tried a different data cable and there are no more errors, should have known better ,The cable was finaky but now all works  as it should I still get the garbage in the serial window and not the message that’s in the data folder.

Today I figured out why I was having the error and now I get what was expected.Its been a long journey, much was my misunderstanding and some was hardware. Last issue was the error when trying to get the message and realized it was undefined loop ,resolution was to make sure that there is a loop in the program.Thanks I know your patience had to be getting thin.

 

 

0 Vote Up Vote Down
Sara Santos Staff answered 1 month ago

Hi.
Don’t worry. I’m glad everything is working as expected now.
Just make sure you follow exactly the instructions and don’t skip any steps, and everything will work fine.
 
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.