Hi NXP:
we're developing project by default linker script(linker_flash_s32k312.ld),but we encountered overflow problem at int_sram section. I'd like to adjust sram section (reduce int_sram_shareable and extented int_sram ), Could you tell me what is mean about int_sram_shareable section? int_sram_shareable looks like no use in current project application.
default memory allocation:(linker_flash_s32k312.ld)
MEMORY
{
int_pflash : ORIGIN = 0x00440000, LENGTH = 0x0007F800 /* 511KB */
int_pflash_custom : ORIGIN = 0x004BF800, LENGTH = 0x00000400 /* 1KB */
int_dflash : ORIGIN = 0x10000000, LENGTH = 0x00020000 /* 128KB */
int_itcm : ORIGIN = 0x00000000, LENGTH = 0x00008000 /* 32KB */
int_dtcm : ORIGIN = 0x20000000, LENGTH = 0x0000F000 /* 60KB */
int_stack_dtcm : ORIGIN = 0x2000F000, LENGTH = 0x00001000 /* 4KB */
int_sram : ORIGIN = 0x20400000, LENGTH = 0x00007F00 /* 32KB , needs to include int_sram_fls_rsv*/
int_sram_fls_rsv : ORIGIN = 0x20407F00, LENGTH = 0x00000100
int_sram_no_cacheable : ORIGIN = 0x20408000, LENGTH = 0x00007F00 /* 32KB , needs to include int_sram_results */
int_sram_results : ORIGIN = 0x2040FF00, LENGTH = 0x00000100
int_sram_shareable : ORIGIN = 0x20410000, LENGTH = 0x00008000 /* 32KB */
ram_rsvd2 : ORIGIN = 0x20418000, LENGTH = 0 /* End of SRAM */
}
current project memory usage:
Memory region Used Size Region Size %age Used
int_pflash: 221156 B 510 KB 42.35%
int_pflash_custom: 40 B 1 KB 3.91%
int_dflash: 0 GB 128 KB 0.00%
int_itcm: 0 GB 32 KB 0.00%
int_dtcm: 1032 B 60 KB 1.68%
int_stack_dtcm: 0 GB 4 KB 0.00%
int_sram: 32328 B 32512 B 99.43%
int_sram_fls_rsv: 0 GB 256 B 0.00%
int_sram_no_cacheable: 16332 B 32512 B 50.23%
int_sram_results: 256 B 256 B 100.00%
int_sram_shareable: 0 GB 32 KB 0.00%
ram_rsvd2: 0 GB 0 GB
current environment description:
MCU:S32K312/100pin
S32DS Product:3.5.0.202207261815
RTD S32KXX:RTD5.0.0.202410011049(installed RTD5.0.0_P8)
HSE firmware:HSE_FW_S32K312_0_2_55_0