Skip to main content
Hank Im
Associate II
May 13, 2019
Solved

How to combine hex file of bootloader and application into one hex file?

  • May 13, 2019
  • 4 replies
  • 4339 views

Hello​.

I have got a bootloader and application that both work separately.

I want to combine from both file to one hex file using SPC5studio.

Is there any option and setting in SPC5studio?

Thank you in advance.

    This topic has been closed for replies.
    Best answer by Erwan YVIN

    Hello ,

    Have you tried to import SPC58ECxx_RLA Bootloader Application for Discovery ?

    Anyway , you have to create your own linker file (user.ld) at the root of your project.

    Best regards

    Erwan

    4 replies

    Altamash Abdul Rahim
    Associate III
    May 13, 2019

    Hello,

    Don't know if it helps or not I have flashed both application code and bootloader onto the micro-controller but on a different series(STM32f405). I used st link utility for flashing the code and keep in mind to change the address where the bootloader and application code has to be flashed. Also make sure to set the linker script ROM address to appropriate value. I have used the TrueStudio IDE for the same as well.

    Altamash.

    Tesla DeLorean
    Guru
    May 13, 2019

    Intel HEX files can typically be merged in a text editor by losing the terminal record of the first file, and appending all the data from the second.

    Tools like srecord should be able to merge/combine also, and the format is pretty trivial in any case.​

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Jeroen3
    Senior
    May 13, 2019

    See if SRecord can help you.

    Erwan YVIN
    Erwan YVINBest answer
    ST Employee
    May 14, 2019

    Hello ,

    Have you tried to import SPC58ECxx_RLA Bootloader Application for Discovery ?

    Anyway , you have to create your own linker file (user.ld) at the root of your project.

    Best regards

    Erwan