Page 1 of 1
Merge all bin files into single one
Posted: Wed Jan 02, 2019 7:32 pm
by Humam Helfawi
Hi,
I want to merge all bin files of the project (bootloader, partition, spiifs, factory_app ...) into single one for production. I found that it is possible using the ESP32 download tool. However, I would like to automate it as part of the whole release process of my project. Is there a script or executable tool that I can call by command line to do the merge?
Thanks!
Re: Merge all bin files into single one
Posted: Thu Jan 03, 2019 1:15 am
by ESP_Angus
Hi Humam,
We don't have an esptool.py command line command for this yet. There is an open request for this feature on the esptool repo, but no ETA yet:
https://github.com/espressif/esptool/issues/254
The best options right now are either to write a short script to merge the files, or to write all the binary data to an ESP32's flash and then use the read_flash command to read back it all as a single file.
Angus
Re: Merge all bin files into single one
Posted: Thu Jan 03, 2019 8:50 pm
by Humam Helfawi
ESP_Angus wrote: ↑Thu Jan 03, 2019 1:15 am
Hi Humam,
We don't have an esptool.py command line command for this yet. There is an open request for this feature on the esptool repo, but no ETA yet:
https://github.com/espressif/esptool/issues/254
The best options right now are either to write a short script to merge the files, or to write all the binary data to an ESP32's flash and then use the read_flash command to read back it all as a single file.
Angus
Thank you very much! it seems that I will write some script to do the job.
Re: Merge all bin files into single one
Posted: Fri Jan 04, 2019 2:29 pm
by chrismerck
We had considered using a single bin, but it turned out to slow down the programming process unacceptably, so we just use a single esptool command with multiple files (partition table, bootloader, app), and it worked great. Usually there's a script that flashes a production package anyways, so it's not much more overhead to have three files.