S32K314 RAM usage

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K314 RAM usage

119 Views
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 Kudos
Reply
1 Reply

94 Views
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 Kudos
Reply