LPC1756 has 16KB SRAM but overflowed by 3504 bytes

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by phuockal on Thu May 07 00:36:16 MST 2015
Dear friends, experts,

I am working on LPC1756, use LpcXpresso 7.6.2, C++ programming language.

the memory of LPC1756 is listed as below:

  /* Define each memory region */
  MFlash256 (rx) : ORIGIN = 0x0, LENGTH = 0x40000 /* 256K bytes */
  RamLoc16 (rwx) : ORIGIN = 0x10000000, LENGTH = 0x4000 /* 16K bytes */
  RamAHB16 (rwx) : ORIGIN = 0x2007c000, LENGTH = 0x4000 /* 16K bytes */


but while I built my project C++, the LpcXpresso announce an error like:

c:/nxp/lpcxpresso_7.6.2_326/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: LPC1756.axf section `.bss' will not fit in region `RamLoc16'
c:/nxp/lpcxpresso_7.6.2_326/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: region `RamLoc16' overflowed by 3504 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [LPC1756.axf] Error 1

I wonders why RamLoc16 has 16KB but overflowed by 3504 bytes.
Please help me