merge your bootloader binary with the application project and load it as a single .elf/srec/bin

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

merge your bootloader binary with the application project and load it as a single .elf/srec/bin

1,877 Views
KKumar
Contributor II

Hi NXP,

I have a bootloader binary file and want to merge with application project and load it as .elf/srec/bin file.

I found a solution here

https://community.nxp.com/t5/S32-Design-Studio/Compiling-multiple-projects-in-S32DS-IDE/m-p/705483 

 

In this solution bootloader address in continuous from 0x0000_0000 to 0x0000_A000 and may not work with my bootloader memory layout.

But In my bootloader memory layout is like below

KKumar_0-1679398065914.png

 interrupt is from 0x0000_0000 and Bootloader Application is from 0x1000_0000

Help me merge bootloader binary bin(with my configuration) with application project.

0 Kudos
Reply
3 Replies

1,849 Views
KKumar
Contributor II

Hi @lukaszadrapa,

Will this method take care of different memory location of bootloader(bootloader's interrupt are from 0x0 to 0x400 and text from 0x10000000)??

 

0 Kudos
Reply

1,845 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

This method doesn't care about the binary file content. It takes the content and put it to specified area, nothing else.

Notice that binary file is continuous image of raw data. If you have some data at 0x0 and then another data in data flash at 0x1000_0000, then the binary file will cover everything in this range including the huge gap between program and data flash. For this purpose, it would be better to have two bin files.

Regards,

Lukas

0 Kudos
Reply

1,857 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos
Reply