SRAM overflow about S32K312

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SRAM overflow about S32K312

ソリューションへジャンプ
1,093件の閲覧回数
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 解決策
979件の閲覧回数
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 返答(返信)
987件の閲覧回数
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 件の賞賛
返信
980件の閲覧回数
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,016件の閲覧回数
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 件の賞賛
返信
997件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@f-nelson

yes, this can be done,

0 件の賞賛
返信
1,051件の閲覧回数
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 件の賞賛
返信