`.bss' will not fit in region `SRAM'

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

`.bss' will not fit in region `SRAM'

3,478 Views
lixu
Contributor II

Dear everyone,

I am using S32DS working on MPC5748G.

I ran into the following problems while debugging the project:

Ld error: lwip_1.elf section `.bss' will not fit in region `SRAM'           lwip_1           C/C++ Problem

Ld error: region `SRAM' overflowed by 10992 bytes                         lwip_1           C/C++ Problem

make: *** [makefile:76: lwip_1.elf] Error 1                                          lwip_1           C/C++ Problem

Can you tell me how should I troubleshoot this problem and solve it?

Thanks and best regards,

Li Xu

 

0 Kudos
Reply
2 Replies

3,450 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Are you sure you want to execute the code from RAM? because it looks to me like it wont fit in SRAM.

Try to load it into flash.

best regards,

Peter

0 Kudos
Reply

3,475 Views
lixu
Contributor II

The distribution of SRAM.

/* Define SRAM */
SRAM_BASE_ADDR = DEFINED(__sram_base_addr__) ? __sram_base_addr__ : 0x40000000;
SRAM_SIZE = DEFINED(__sram_size__) ? __sram_size__ : 256K;

 

0 Kudos
Reply