S32k34x int_sram overflow error

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

S32k34x int_sram overflow error

648 次查看
pratikkul26
Contributor I

We are using S32K342 & S32K3_RTD_3_0_0_P07_D2306_ASR_REL_4_7_REV_0000_20230629

FreeRTOS heap settings is 32767.

After building our application code we are getting following errors.

Ld error: region `int_sram' overflowed by 23356 bytes

Ld error: section .int_results VMA [2040bf00,2040bfff] overlaps section .sram_data VMA 

Ld error: section .non_cacheable_data VMA [20408000,20408003] overlaps section .sram_bss VMA 

Ld error: xxx.elf section `.sram_bss' will not fit in region `int_sram' 

pratikkul26_0-1737560238946.png

pratikkul26_2-1737560611256.png

1)can we modify linker file to increase int_sram size to resolve the issue?

2)is there any option or method in the S32DS to allocate application code & FreeRTOS heap memory into int_itcm & int_dtcm section?

Regards,

Pratik

0 项奖励
回复
1 回复

608 次查看
IsaulO
NXP Employee
NXP Employee

Hi @pratikkul26 ,

The int_sram size specified in the linker file is 32KB and is composed for sram_data + sram_bss + heap, as we can see your heap size is 32767 so this causes the int_sram overflow.

1)Could you try decreasing the heap size 23356 bytes? we also recommend that you check your .map file to see the sections mentioned in your error and how much memory you are using.

2) We don’t have example code for this specific implementation, but I can offer example code for using DTCM/ITCM memories in the project
Example Siul2_Port_Ip_Example_S32K344_ITCM_DTCM S32DS3.4 RTD300 - NXP Community.

BR,

IsaulO.

0 项奖励
回复