SRAM overflow about S32K312

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

SRAM overflow about S32K312

Jump to solution
1,100 Views
f-nelson
Contributor IV

Hi NXP
 we are developing project based on FreeRTOS sample code, now we got SRAM size issue. I queryed SRAM size 96KB of s32k312 from reference manual, but I don't understatnd why it has bss 43484 size, and add 8k SRAM size will generate overflowed, please help us, thanks

current environment description:
MCU:S32K312 100pin
S32DS Product:3.5.0.202207261815
RTD S32KXX:RTD5.0.0.202407261948

attachment:
linker_flash_s32k312.ld
FreeRTOS_S32K312_MB.map

20250424-error_message.txt

Tags (1)
0 Kudos
Reply
1 Solution
986 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

Please check the xx.map file compiled by your project, and adjust the link file according to the size of your program.

When adjusting the link file, pay attention to some matters, such as the configuration of MPU.

 

Make some changes and tests yourself first, and then create a new topic if you have any new problems.

View solution in original post

0 Kudos
Reply
5 Replies
994 Views
f-nelson
Contributor IV

Hi Selent::

Could you recommand how many size can adjust from int_sram_no_cacheable  to int_sram size for safety?

May I adjust 16KB(int_sram_no_cacheable) to  int_sram 48KB(int_sram)?

PS.I knew memory name and descript

int_sram:Normal SRAM for general data (bss, data)

int_sram_no_cacheable:SRAM for non-cacheable data (DMA buffers, etc.)

0 Kudos
Reply
987 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

Please check the xx.map file compiled by your project, and adjust the link file according to the size of your program.

When adjusting the link file, pay attention to some matters, such as the configuration of MPU.

 

Make some changes and tests yourself first, and then create a new topic if you have any new problems.

0 Kudos
Reply
1,023 Views
f-nelson
Contributor IV

Hi Selent:
thanks for your helping. May I adjust int_sram_no_cacheable size smaller about linker script?
and increasing int_sram size. Is it ok?

BR
Nelson

0 Kudos
Reply
1,004 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

yes, this can be done,

0 Kudos
Reply
1,058 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

This error is very clear, "sram_bss" section is located in the "int_sram",
The size of sram_bss occupied by your program is 0x89f8, which has exceeded the length of the int_sram space you defined.

Senlent_0-1745742397940.png

 

0 Kudos
Reply