Calculate flash memory

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

Calculate flash memory

跳至解决方案
410 次查看
Guy_mego
Contributor II

Hi,

I'm using LPC11U68 for my project. When I build my project on MCUXpresso IDE i see the usage of my flash memory. I know that is some MCUs there is given function or macro that gives the flash usage of flash memory. 
Is there a same for LPC11U68?

if not how can I calculate the usage of flash memory, in my code? I know the base address of my flash is:
0x0002 0000

Thanks.

标记 (1)
0 项奖励
1 解答
402 次查看
ErichStyger
Senior Contributor V

There is the 'size' utility you can use to calculate the FLASH/RAM size, see

https://mcuoneclipse.com/2017/03/29/mcuxpresso-ide-s-record-intel-hex-and-binary-files/

how it is used in MCUXpresso IDE.

If you want to have more details: https://mcuoneclipse.com/2020/01/10/listing-code-and-data-size-for-all-files-with-the-gnu-size-utili...

Additionally, the MCUXpresso IDE includes a 'image info' view which gives you a lot of details too:

ErichStyger_0-1673976193101.png

 

I hope this helps,

Erich

在原帖中查看解决方案

1 回复
403 次查看
ErichStyger
Senior Contributor V

There is the 'size' utility you can use to calculate the FLASH/RAM size, see

https://mcuoneclipse.com/2017/03/29/mcuxpresso-ide-s-record-intel-hex-and-binary-files/

how it is used in MCUXpresso IDE.

If you want to have more details: https://mcuoneclipse.com/2020/01/10/listing-code-and-data-size-for-all-files-with-the-gnu-size-utili...

Additionally, the MCUXpresso IDE includes a 'image info' view which gives you a lot of details too:

ErichStyger_0-1673976193101.png

 

I hope this helps,

Erich