Writing ELF binary into MPC5748G Flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Writing ELF binary into MPC5748G Flash

1,015 次查看
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!

标记 (3)
0 项奖励
3 回复数

888 次查看
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 项奖励

888 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

yes, you are right. 

Jiri

0 项奖励

888 次查看
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 项奖励