Linker Script

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

Linker Script

跳至解决方案
2,552 次查看
Guy_mego
Contributor II

Hi,

I'm using MCUxpresso IDE and I want to change the linker script so I'll be able to see the size of of my project in the my flash.
The issue is i can't edit the script no matter what I didn't succeed to delete it or change it.
Please anyone can advise what should I do.

Thanks in advance. 

0 项奖励
回复
1 解答
2,545 次查看
ErichStyger
Specialist I

This is usually done with the GNU 'size' (https://mcuoneclipse.com/2014/05/04/printing-code-size-information-in-eclipse/ ) utility (see https://mcuoneclipse.com/2020/01/10/listing-code-and-data-size-for-all-files-with-the-gnu-size-utili...  ) and the MCUXpresso IDE has all the support for it.

Check your build steps:

ErichStyger_0-1687187086141.png

Additionally there is a setting to print the memory usage here:

ErichStyger_1-1687187149210.png

I hope this helps,

Erich

 

在原帖中查看解决方案

2 回复数
2,543 次查看
_angelo_
Contributor III

the size in your flash would be the size of the binary you're flashing in, not the elf.

0 项奖励
回复
2,546 次查看
ErichStyger
Specialist I

This is usually done with the GNU 'size' (https://mcuoneclipse.com/2014/05/04/printing-code-size-information-in-eclipse/ ) utility (see https://mcuoneclipse.com/2020/01/10/listing-code-and-data-size-for-all-files-with-the-gnu-size-utili...  ) and the MCUXpresso IDE has all the support for it.

Check your build steps:

ErichStyger_0-1687187086141.png

Additionally there is a setting to print the memory usage here:

ErichStyger_1-1687187149210.png

I hope this helps,

Erich