cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hank Im
Associate II

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 discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
1 ACCEPTED SOLUTION

Accepted Solutions
Erwan YVIN
ST Employee

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

View solution in original post

4 REPLIES 4
Altamash Abdul Rahim
Associate II

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.

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 Venmo
Up vote any posts that you find helpful, it shows what's working..
Jeroen3
Senior

See if SRecord can help you.

Erwan YVIN
ST Employee

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