• 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

ESP32 Data files upload – need to see the command

Q&A Forum › Category: ESP32 › ESP32 Data files upload – need to see the command
0 Vote Up Vote Down
Barry asked 3 years ago

I’m trying to make a batch file to upload the /data directory. While the Ard IDE shows me the command line for loading the executable, it does NOT show me the similar line for uploading the /data directory.
This is the process I’m trying to use. https://randomnerdtutorials.com/install-esp32-filesystem-uploader-arduino-ide/
Except I only want to distribute the .bin and html files rather than the source.
What I’d like to see is the command to run C:\user/…..esptool.exe ……. abc.bin   or something like that.
I’ll happily provide this when I get it working.
Barry

Question Tags: ESP32
9 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
I’m not sure that I understood your question.
Do you want to be able to upload specific files or the whole data folder?
Have you taken a look at the list of esptool.py commands? https://docs.espressif.com/projects/esptool/en/latest/esp32/esptool/basic-commands.html
Regards,
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

I wish to load (overwrite) the entire data folder. The link you provided gives the generic command, very helpful.
It appears one of the files used by esptool is a memory map. Where can I find that file for loading the /data directory?
Thanks much!

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

Hi again.
 
If you use the option ESP32 Data Sketch upload without any board connected to your computer, you’ll get an error. But, it will show you where it created and saved the bin file for the data folder.
See the example in the following picture:
https://i0.wp.com/randomnerdtutorials.com/wp-content/uploads/2021/01/Get-SPIFFS-Bin-File-Path.png?resize=1024%2C506&quality=100&strip=all&ssl=1
As you can see SPIFFS uploaded failed, but it created a bin file and shows where it is located.
Then, you can use the generic esptool commands to upload that specific file to the board.
 
Does this help?
Regards
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

Great!  I think this is exactly what I was looking for.
Thanks so much!

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

Great!
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

0 Vote Up Vote Down
Barry answered 3 years ago

While the path to the file was useful, I still would like to see the line calling esptool.py as there are parameters there I need, like starting memory address.
I’ve looked on github at the java script and am trying to reverse engineer that.
 

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

Hi.
Take a look at this article: https://dev.classmethod.jp/articles/esp32-upload-compiled-sketch-using-esptool-en/
You’ll need to translate it into English.
Regards,
Sara

0 Vote Up Vote Down
Barry answered 3 years ago

Yes I’ve seen that page. He just turns on VERBOSE mode and discusses loading executable .bin files.
Here is the general reference:   https://docs.espressif.com/projects/esptool/en/latest/esp32/esptool/basic-commands.html
The screen shows the list of files and the serial upload settings, but it doesn’t show a “starting address”, which is the piece I’m missing.
 

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

Yes, I understand,
The problem is that I don’t know the address either 😐
Meanwhile, if you find something, let us know.

I’m sorry that I can’t help much.
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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.