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
解決済! 解決策の投稿を見る。
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.
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.)
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.
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
Hi@f-nelson
yes, this can be done,
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.