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.
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
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?
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:
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?
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
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.
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.
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.