S32K148: .elf file size greater than Flash RAM size

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

S32K148: .elf file size greater than Flash RAM size

跳至解决方案
3,581 次查看
saad_saeed
Contributor III

Hello,

I working on s32K148. When I build my project (e.g.lwip_s32k148) on s32DesignStudio, the .elf file which is created is greater than 1.5 MB which is bigger than the size of the flash memory. My question is that whether whole .elf file is saved in the flash memory or whether some specific section of this file are saved into the flash memory. And Iam just curious why the size is so large when I build the project lwip_s32k148?

Thanks,

Saad.

标记 (3)
0 项奖励
回复
1 解答
3,347 次查看
BlackNight
NXP Employee
NXP Employee

The size of the .elf file has nothing to do with the code size, as the ELF file includes lots of other information, for example the debug information. That information does *not* get loaded on your target (this is one of many differences between host and embedded development).

Articles which handle that subject:

Listing Code and Data Size for each Source File with GNU and Eclipse | MCU on Eclipse 

Printing Code Size Information in Eclipse | MCU on Eclipse 

text, data and bss: Code and Data Size Explained | MCU on Eclipse 

Converting a Raw Binary File into an ELF/Dwarf File for Loading and Debugging | MCU on Eclipse 

I hope this helps,

Erich

在原帖中查看解决方案

0 项奖励
回复
1 回复
3,348 次查看
BlackNight
NXP Employee
NXP Employee

The size of the .elf file has nothing to do with the code size, as the ELF file includes lots of other information, for example the debug information. That information does *not* get loaded on your target (this is one of many differences between host and embedded development).

Articles which handle that subject:

Listing Code and Data Size for each Source File with GNU and Eclipse | MCU on Eclipse 

Printing Code Size Information in Eclipse | MCU on Eclipse 

text, data and bss: Code and Data Size Explained | MCU on Eclipse 

Converting a Raw Binary File into an ELF/Dwarf File for Loading and Debugging | MCU on Eclipse 

I hope this helps,

Erich

0 项奖励
回复