Writing ELF binary into MPC5748G Flash

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

Writing ELF binary into MPC5748G Flash

1,452 Views
bix010
Contributor III

Hi,

I'm using S32 with PEMicro debugger to write my compiled ELF into the flash of a MPC5748G LCEVB.

For debugging reasons, I also dumped out the full 6MB contents of user application flash. However, I can't find my ELF file in the dumped binary. The ELF magic number can't even be found.

How does S32 copy ELF binaries into flash?

Thanks!

0 Kudos
Reply
3 Replies

1,325 Views
bix010
Contributor III

Hi Jiri,

Thanks for your reply. Am I correct to say that S32DS discards the ELF headers and only copies the necessary binary sections into their respective physical memory addresses?

0 Kudos
Reply

1,325 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

yes, you are right. 

Jiri

0 Kudos
Reply

1,325 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

S32DS gets from elf raw binary data and write it into flash memory. Elf file is used for symbols and source code location.

Jiri 

0 Kudos
Reply