linking single elf file for multiple bootloader and applicationn

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

linking single elf file for multiple bootloader and applicationn

873件の閲覧回数
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 件の賞賛
返信
3 返答(返信)

829件の閲覧回数
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 件の賞賛
返信

814件の閲覧回数
Tarek72
Contributor I

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

0 件の賞賛
返信

802件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信