Skip to main content
Associate II
August 21, 2024
Solved

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

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?

    This topic has been closed for replies.
    mƎALLEm
    mƎALLEmBest answer
    ST Technical Moderator
    August 21, 2024

    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 it 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 "Best answer" on the reply which solved your issue or answered your question.

    6 replies

    mƎALLEm
    ST Technical Moderator
    August 21, 2024
    To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
    Associate II
    August 21, 2024

    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.

    mƎALLEm
    ST Technical Moderator
    August 21, 2024

    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 "Best answer" on the reply which solved your issue or answered your question.