S32K314's SRAM is overflow

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K314's SRAM is overflow

Jump to solution
1,684 Views
shunyizhang
Contributor IV

Hi,@NXP

Appears when compiling a project with S32DS for S32 platform“Description Resource Path Location Type
Ld error: region `int_sram' overflowed by 417616 bytes S32K314OFBCU C/C++ Problem(IC S32K314)”

.ld

HEAP_SIZE = DEFINED(__heap_size__) ? __heap_size__ : 0x00002000;
__STANDBY_RAM_LIMIT_END = 0x20407FFF; /* 32Kbyte for standby ram */

ENTRY(Reset_Handler)

MEMORY
{
int_pflash : ORIGIN = 0x00400000, LENGTH = 0x003D4000 /* 4096KB - 176KB (sBAF + HSE)*/
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 = 0x0002FF00 /* 192KB , needs to include int_sram_fls_rsv */
int_sram_fls_rsv : ORIGIN = 0x2042FF00, LENGTH = 0x00000100
int_sram_no_cacheable : ORIGIN = 0x20430000, LENGTH = 0x0000FF00 /* 64KB, needs to include int_sram_results */
int_sram_results : ORIGIN = 0x2043FF00, LENGTH = 0x00000100
int_sram_shareable : ORIGIN = 0x20440000, LENGTH = 0x00004000 /* 16KB */
ram_rsvd2 : ORIGIN = 0x20444000, LENGTH = 0 /* End of SRAM */
}

 

How should I modify this ld file, please give an example and list the modification process, thank you!

 

0 Kudos
Reply
1 Solution
1,665 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@shunyizhang

In your link file, the SRAM space has been fully used and exceeds 417616 bytes. This number is far beyond our SRAM space. This is not a problem that can be solved by modifying the link file. You should check the space occupied by your application code.

 

View solution in original post

0 Kudos
Reply
1 Reply
1,666 Views
Senlent
NXP TechSupport
NXP TechSupport

Hi@shunyizhang

In your link file, the SRAM space has been fully used and exceeds 417616 bytes. This number is far beyond our SRAM space. This is not a problem that can be solved by modifying the link file. You should check the space occupied by your application code.

 

0 Kudos
Reply