bin2hex for ESP32 microcontrollers?

irgibon
Posts: 7
Joined: Thu May 23, 2019 11:05 am

bin2hex for ESP32 microcontrollers?

Postby irgibon » 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!

User avatar
rudi ;-)
Posts: 1728
Joined: Fri Nov 13, 2015 3:25 pm

Re: bin2hex for ESP32 microcontrollers?

Postby rudi ;-) » Mon Aug 26, 2019 4:57 pm

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 4520 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.
Attachments
example_combine_hello_world.png
example_combine_hello_world.png (49.85 KiB) Viewed 4514 times
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

irgibon
Posts: 7
Joined: Thu May 23, 2019 11:05 am

Re: bin2hex for ESP32 microcontrollers?

Postby irgibon » Tue Aug 27, 2019 7:27 am

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.

Who is online

Users browsing this forum: No registered users and 98 guests