Page 1 of 1

bin2hex for ESP32 microcontrollers?

Posted: Mon Aug 26, 2019 2:11 pm
by irgibon
Hello!

Is there a ready-made tool for generating * .hex files from * .bin files for ESP32 microcontrollers?
I need to get the hexadecimal image file of the memory chips from the files my_firmware.bin + partitions_singleapp.bin.

Thank!

Re: bin2hex for ESP32 microcontrollers?

Posted: Mon Aug 26, 2019 4:57 pm
by rudi ;-)
irgibon wrote:
Mon Aug 26, 2019 2:11 pm
Hello!

Is there a ready-made tool for generating * .hex files from * .bin files for ESP32 microcontrollers?
I need to get the hexadecimal image file of the memory chips from the files my_firmware.bin + partitions_singleapp.bin.

Thank!

hi
for own interest, why you would do .hex from .bin files ?
do you want combine all the bins user.files to one file?

if you want combine the bin's to one file you can use the Flash Download Tools (ESP8266 & ESP32) / windows GUI flasher tool that do the work for you.

simple entry the file src, the address where it must go
and combine it all to one bin
combine.png
combine.png (29.64 KiB) Viewed 4525 times
if you then want flash to the esp
simple flash the target.bin to 0x0


hope this helps

best wishes
rudi ;-)

edit: add example pic
check the params on your used clk, spi ram .. also the option "do not chng bin" ..
like you use/need this.

Re: bin2hex for ESP32 microcontrollers?

Posted: Tue Aug 27, 2019 7:27 am
by irgibon
Thanks a lot for your help!

I think this is what I need.

In my project I want to use one single flash memory chip to store the firmware of the ESP32 and STM32 microcontrollers. ESP32 is a slave and is enabled upon request by STM32. Further firmware upgrades are expected using the bootloader developed for STM32. Therefore, I need to synthesize a common image file for flash. I think the * .hex format is best suited for these purposes.