cancel
Showing results for 
Search instead for 
Did you mean: 

I want to combine the hex files of the boot and application code.

oguzhansenol
Associate II

I have a software update project and I have two different codes. I want to combine the hex files of these two codes into a single file and finally lock the processor with the help of Option bytes. How can I do this?

6 REPLIES 6
SofLit
ST Employee

Hello,

Refer to this thread and see if it can answer your question:

https://community.st.com/t5/stm32-mcus-boards-and-hardware/production-flash-tool-for-dual-core-stm32h745/m-p/640740

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

I am currently using STM32Cube IDE. I'm not sure if it will work the same as KEil. Additionally, the file does not download from the link.

srec_cat.exe is not related to keil.

Refer to its documentation: https://srecord.sourceforge.net/man/man1/srec_cat.1.html

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.

oguzhansenol_0-1724235927361.png

 

Google does not find the site safe. I removed all firewalls but it still refuses to download. There was another way to download it. Any chance of sharing via email or github?

The project is a high-volume project and we need to speed up the coding stages in mass production, so your support is very important to us.

Basically this is how the command works: srec_cat.exe FIRST_HEX.hex -Intel SECOND_HEX.hex  -Intel -o OUTPUT_HEX.hex -Intel

You need to install SRecord utility (in the attachement) and follow the same procedure provided by GHolc.1 in https://community.st.com/t5/stm32-mcus-boards-and-hardware/production-flash-tool-for-dual-core-stm32h745/m-p/640740 to create .bat file and call if in Post-Build as shown here:

SofLit_0-1724237998290.png

I didn't test the procedure. If It doesn't work, please contact your local FAE as you have a high-volume project.

 

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.