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
2,135 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
2,116 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
2,117 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
%3CLINGO-SUB%20id%3D%22lingo-sub-1877949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32K314's%20SRAM%20is%20overflow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1877949%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%40NXP%3C%2FP%3E%3CP%3EAppears%20when%20compiling%20a%20project%20with%20S32DS%20for%20S32%20platform%E2%80%9CDescription%20Resource%20Path%20Location%20Type%3CBR%20%2F%3ELd%20error%3A%20region%20%60int_sram'%20overflowed%20by%20417616%20bytes%20S32K314OFBCU%20C%2FC%2B%2B%20Problem(IC%20S32K314)%E2%80%9D%3C%2FP%3E%3CP%3E.ld%3C%2FP%3E%3CP%3EHEAP_SIZE%20%3D%20DEFINED(__heap_size__)%20%3F%20__heap_size__%20%3A%200x00002000%3B%3CBR%20%2F%3E__STANDBY_RAM_LIMIT_END%20%3D%200x20407FFF%3B%20%2F*%2032Kbyte%20for%20standby%20ram%20*%2F%3C%2FP%3E%3CP%3EENTRY(Reset_Handler)%3C%2FP%3E%3CP%3EMEMORY%3CBR%20%2F%3E%7B%3CBR%20%2F%3Eint_pflash%20%3A%20ORIGIN%20%3D%200x00400000%2C%20LENGTH%20%3D%200x003D4000%20%2F*%204096KB%20-%20176KB%20(sBAF%20%2B%20HSE)*%2F%3CBR%20%2F%3Eint_dflash%20%3A%20ORIGIN%20%3D%200x10000000%2C%20LENGTH%20%3D%200x00020000%20%2F*%20128KB%20*%2F%3CBR%20%2F%3Eint_itcm%20%3A%20ORIGIN%20%3D%200x00000000%2C%20LENGTH%20%3D%200x00008000%20%2F*%2032KB%20*%2F%3CBR%20%2F%3Eint_dtcm%20%3A%20ORIGIN%20%3D%200x20000000%2C%20LENGTH%20%3D%200x0000F000%20%2F*%2060KB%20*%2F%3CBR%20%2F%3Eint_stack_dtcm%20%3A%20ORIGIN%20%3D%200x2000F000%2C%20LENGTH%20%3D%200x00001000%20%2F*%204KB%20*%2F%3CBR%20%2F%3Eint_sram%20%3A%20ORIGIN%20%3D%200x20400000%2C%20LENGTH%20%3D%200x0002FF00%20%2F*%20192KB%20%2C%20needs%20to%20include%20int_sram_fls_rsv%20*%2F%3CBR%20%2F%3Eint_sram_fls_rsv%20%3A%20ORIGIN%20%3D%200x2042FF00%2C%20LENGTH%20%3D%200x00000100%3CBR%20%2F%3Eint_sram_no_cacheable%20%3A%20ORIGIN%20%3D%200x20430000%2C%20LENGTH%20%3D%200x0000FF00%20%2F*%2064KB%2C%20needs%20to%20include%20int_sram_results%20*%2F%3CBR%20%2F%3Eint_sram_results%20%3A%20ORIGIN%20%3D%200x2043FF00%2C%20LENGTH%20%3D%200x00000100%3CBR%20%2F%3Eint_sram_shareable%20%3A%20ORIGIN%20%3D%200x20440000%2C%20LENGTH%20%3D%200x00004000%20%2F*%2016KB%20*%2F%3CBR%20%2F%3Eram_rsvd2%20%3A%20ORIGIN%20%3D%200x20444000%2C%20LENGTH%20%3D%200%20%2F*%20End%20of%20SRAM%20*%2F%3CBR%20%2F%3E%7D%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EHow%20should%20I%20modify%20this%20ld%20file%2C%20please%20give%20an%20example%20and%20list%20the%20modification%20process%2C%20thank%20you!%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1878544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32K314's%20SRAM%20is%20overflow%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1878544%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%40%3CSPAN%3Eshunyizhang%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIn%20your%20link%20file%2C%20the%20SRAM%20space%20has%20been%20fully%20used%20and%20exceeds%20417616%20bytes.%20This%20number%20is%20far%20beyond%20our%20SRAM%20space.%20This%20is%20not%20a%20problem%20that%20can%20be%20solved%20by%20modifying%20the%20link%20file.%20You%20should%20check%20the%20space%20occupied%20by%20your%20application%20code.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E