linking single elf file for multiple bootloader and applicationn

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

linking single elf file for multiple bootloader and applicationn

867 Views
Tarek72
Contributor I

I'm currently trying to get a bootmanager/ bootloader/application to be linked as a single .elf file for the MPC5748G.

There are some issues that I'm a little confused about, and I would be very grateful if you could provide any guidance with regard to them.

The plan is to always boot the bootmanager and then jump to the application or the application according to the value of some flag. How to combine all 3 software entities into one instead of flashing each one on its own and I manage to do that would I be able to access the code of bootloader or application after jumping.

I have already defined different start and end addresses of each entity in the linker file and developed the jumping mechanism

0 Kudos
Reply
3 Replies

823 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @Tarek72 

I can see two basic options:

1. Generate binary files for additional projects (bootmanager, bootloader) using this method:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Generate-S-Record-Intel-HEX-Bina...

And then import them to your application like this:

https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-Link-a-binary-file-s-into-the-ap...

When you build the application, it will contain all the images.

2. I don't know what kind of tools you use, but if it is S32 Design Studio and Pemicro, you can simply specify here which additional object files should be loaded with the project:

lukaszadrapa_0-1739270151657.png

 

Regards,

Lukas

0 Kudos
Reply

808 Views
Tarek72
Contributor I

okay , which one of these options will allow me to debug the other projects?

0 Kudos
Reply

796 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 Kudos
Reply