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