SRAM overflow about S32K312

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

SRAM overflow about S32K312

跳至解决方案
1,097 次查看
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

标记 (1)
0 项奖励
回复
1 解答
983 次查看
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 项奖励
回复
5 回复数
991 次查看
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 项奖励
回复
984 次查看
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 项奖励
回复
1,020 次查看
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 项奖励
回复
1,001 次查看
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

yes, this can be done,

0 项奖励
回复
1,055 次查看
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 项奖励
回复