S32K342 int_sram_results overflowed by 256 bytes

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

S32K342 int_sram_results overflowed by 256 bytes

616 次查看
pb632146
Contributor V
I am getting the error that my sram has overflown, given this is a very small amount of overflow can I just shift memory from "int_sram_nocacheable" to "int_sram_results"?
/*
* GCC Linker Command File:
* 0x00000000    0x0000FFFF  65536       ITCM
* 0x20000000    0x2001FFFF  131072      DTCM
* 0x00400000    0x005FFFFF  2097152     Program Flash
* 0x10000000    0x1001FFFF  131072      Data Flash
* 0x20400000    0x2040FFFF  65536       SRAM_0
* Last 176 KB of CODE_FLASH reserved by HSE Firmware
* standby_data section should contain only uninitialized data
*/
HEAP_SIZE  = DEFINED(__heap_size__)  ? __heap_size__  : 0x00001000;
__STANDBY_RAM_LIMIT_END  = 0x20407FFF;  /* 32Kbyte for standby ram */
 
ENTRY(Reset_Handler)
__exidx_start = .;
__exidx_end = .;
MEMORY
{
    int_pflash              : ORIGIN = 0x00400000, LENGTH = 0x001D4000    /* 2048KB - 176KB (sBAF + HSE)*/
    int_dflash              : ORIGIN = 0x10000000, LENGTH = 0x00020000    /* 128KB */
    int_itcm                : ORIGIN = 0x00000000, LENGTH = 0x00010000    /* 64KB */
    int_dtcm                : ORIGIN = 0x20000000, LENGTH = 0x0001F000    /* 124KB */
    int_stack_dtcm          : ORIGIN = 0x2001F000, 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 = 0x00003F00    /* 16KB , needs to include int_sram_results  */
    int_sram_results        : ORIGIN = 0x2040BF00, LENGTH = 0x00000100
    int_sram_shareable      : ORIGIN = 0x2040C000, LENGTH = 0x00004000    /* 16KB */
    ram_rsvd2               : ORIGIN = 0x20410000, LENGTH = 0             /* End of SRAM */
}

pb632146_0-1738141583491.png

pb632146_1-1738141915597.png

Is changing the length from 0x3F00 to 0x3D00 and the results length from 0x100 to 0x300 acceptable? it made the error go away.

0 项奖励
回复
1 回复

595 次查看
IsaulO
NXP Employee
NXP Employee

Hi @pb632146 ,

In the linker file the SRAM is divided into sections and all sections can have the specified maximum size of SRAM together, so you can modify them as you needed, depending on your application.

BR,
IsaulO.

 

0 项奖励
回复