S32K314 RAM usage

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

S32K314 RAM usage

902 次查看
hoona75
Contributor I

Hello,

We would like to get RAM usage of our software on S32K314, including remained RAM size. 
Due to DTCU, ITCU, standby RAM, it seems complicated to calculate the remained RAM size. 

Could you let us know how to calculate the same.

Best Regards,

0 项奖励
回复
1 回复

877 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @hoona75,

The compiler has the option for code size enabled by default:

Julin_AragnM_0-1718301257160.png

This blog from MCU on Eclipse explains the differences between these values: text, data and bss: Code and Data Size Explained | MCU on Eclipse.

In short, ‘data’ is for initialized variables, and it counts for RAM and FLASH. The linker allocates the data in FLASH which then is copied from ROM to RAM in the startup code.

Unfortunately, there are no integrated functions for specific monitoring - customer needs to write his own utility for memory management.

Best regards,
Julián

0 项奖励
回复