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'
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
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.