How to calculate Flash and RAM size

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

How to calculate Flash and RAM size

1,965 次查看
leekate-b45752
NXP Employee
NXP Employee

Hello Team, 

 

After build, how can I check the used flash and RAM size?

I found the 'print size' in properties, so I think I can check the flash size of the code, is it correct?

 

175771_175771.pngpastedImage_1.png

 

Best regards,

Kate Lee

标签 (1)
0 项奖励
2 回复数

1,691 次查看
BlackNight
NXP Employee
NXP Employee

Hi Kate,

here is a detailed explanation: text, data and bss: Code and Data Size Explained | MCU on Eclipse 

as there are multiple things: code, constant data, variable initialized data and non-initialized variable data.

I hope this helps,

Erich

0 项奖励

1,691 次查看
jiri_kral
NXP Employee
NXP Employee

Hello, 

Message in the console is output from GNU size utility. The meaning is:

text & data is number of bytes stored in the FLASH and bss is amount of bytes used in the RAM. 

Jiri

0 项奖励