How to view the memory allocation in s32DS for S32 platform

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

How to view the memory allocation in s32DS for S32 platform

1,004 Views
ssattva1
Contributor III

Hey everyone, I am using s32DS for s32 platform and I would like to view the memory allocation of my project. I would like to know the memory allocated to objects and where have they been allocated like SRAM or ROM etc. However , I cant find such a viewer in S32DS, I have seen similar viewer in CCS. Can anyone help me with this?

Tags (2)
0 Kudos
Reply
1 Reply

987 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @ssattva1,

You can use the "-print-memory-usage" option to enable the memory usage for each section:

Julin_AragnM_0-1739565053908.png
Julin_AragnM_1-1739565061933.png

Unfortunately, S32DS does not support the printout for individual file sizes, but you can use the map file to map each section. You can refer to the workaround John Russo shared in the following post: get memory size of each individual file using compiler flags in s32 design studio ide - NXP Communit....

Best regards,
Julián

0 Kudos
Reply