8 years, 9 months ago.

linke erro on platform LPC4088:AudioPlayer.elf section `.bss' will not fit in region `RAM

i have fixed it

1 Answer

8 years, 9 months ago.

Hello,

what I found is that there's this page info for this platform https://developer.mbed.org/users/embeddedartists/notebook/lpc4088-quickstart-board---software-information/ which says that DRAM is used for Heap. There's sdram code file, in ea lib shared there. The file is https://developer.mbed.org/users/embeddedartists/code/EALib/file/e1e36493f347/sdram.cpp, wherey ou can find how it is implemented. Another info page https://developer.mbed.org/teams/Embedded-Artists/wiki/LPC4088DM-Using-Onboard-Memories

If we look at the linker script file

MEMORY
{
  FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
  RAM (rwx) : ORIGIN = 0x100000E8, LENGTH = (64K - 0xE8)

  USB_RAM(rwx) : ORIGIN = 0x20000000, LENGTH = 16K
  ETH_RAM(rwx) : ORIGIN = 0x20004000, LENGTH = 16K
}

You can see RAM is defined with size a bit lower than 64K.

Accepted Answer