Merge all bin files into single one

Humam Helfawi
Posts: 19
Joined: Tue May 29, 2018 10:24 pm

Merge all bin files into single one

Postby Humam Helfawi » Wed Jan 02, 2019 7:32 pm

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!

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Merge all bin files into single one

Postby ESP_Angus » 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

Humam Helfawi
Posts: 19
Joined: Tue May 29, 2018 10:24 pm

Re: Merge all bin files into single one

Postby Humam Helfawi » Thu Jan 03, 2019 8:50 pm

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.

chrismerck
Posts: 76
Joined: Tue May 29, 2018 8:00 pm

Re: Merge all bin files into single one

Postby chrismerck » Fri Jan 04, 2019 2:29 pm

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.

Who is online

Users browsing this forum: MicroController and 132 guests