Determine SRAM usage from map file

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

Determine SRAM usage from map file

1,191 Views
Ginson
Contributor I

Hi,

 

I have NXP S32G3 board. I have .map file. Is there a way to determine the SRAM usage from .map file.

Help is highly appreciated.

 

Thanks

Labels (1)
Tags (1)
0 Kudos
Reply
3 Replies

1,156 Views
Ginson
Contributor I

Hi @carlos_o ,

Thanks for your response.
I cannot find the section".sram" in the the map file which I have.

I have following sections in the .map file.

.__MEM_int_sram_stack_c0_START__

.__MEM_int_sram_stack_c1_START__

.__MEM_int_sram_stack_c2_START__

.__MEM_int_sram_stack_c0_LIMIT__

.__MEM_int_sram_stack_c1_LIMIT__

.__MEM_int_sram_stack_c2_LIMIT__

.__SAF_BSS_SRAM_1_START__

.__SAF_BSS_SRAM_2_START__

.__SAF_BSS_SRAM_3_START__

.__SAF_BSS_SRAM_4_START__

.OS_SRAM_CODE_Code

 

 Please let me know, with following info whether I can check the sram usage with following sections.

Apologies, I unfortunately cannot upload the .map file due confidentiality reason.

0 Kudos
Reply

1,149 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Ginson

I will need more information about your .map file to help you with the issue. Could you please open a support ticket with my name to track it? 

0 Kudos
Reply

1,181 Views
carlos_o
NXP TechSupport
NXP TechSupport

Hi @Ginson,

Thanks for your questions. 

The SRAM usage depends not only on the .map file (this file describes the usage of the M7 application), but it will change if you are using the A53 cores and some peripherals. 

Screenshot 2025-02-13 114205.png

The sram used by your M7 app can be seen at the .sram where you have the start address of the application and the length. 

0 Kudos
Reply