AnsweredAssumed Answered

How to change memory mapping on LPC11C14

Question asked by kalpeshbalar on Jul 23, 2016
Latest reply on Jul 25, 2016 by LPCX presso support


I am using my custome board based on LCP11C14.

I used LCP expresso and LPC open libraries.

In my application I have large data to display on GLCD.

Due to that I am getting below error.

How can I change memory mapping so that I can utilize MFlash32 to store initialize data?

From below logs 8KB is allocated for RamLoC8 and 32KB is for MFlash.

Can I increase size of RamLOC8? How?


Building target: lcd_test.axf

Invoking: MCU Linker

arm-none-eabi-gcc -nostdlib -L"C:\nxp\workspace\ws_lpc11C14\nxp_lpcxpresso_11c24_board_lib\Debug" -L"C:\nxp\workspace\ws_lpc11C14\lpc_chip_11cxx_lib\Debug" -Xlinker -Map="" -Xlinker --gc-sections -Xlinker -print-memory-usage -mcpu=cortex-m0 -mthumb -T "lcd_test_Debug.ld" -o "lcd_test.axf"  ./src/cr_startup_lpc11xx.o ./src/crp.o ./src/lcd_test.o ./src/sysinit.o  ./liblcd/src/lcd.o   -lnxp_lpcxpresso_11c24_board_lib -llpc_chip_11cxx_lib

Memory region         Used Size  Region Size  %age Used

        MFlash32:       19180 B        32 KB     58.53%

c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: lcd_test.axf section `.bss' will not fit in region `RamLoc8'

         RamLoc8:        8532 B         8 KB    104.15%

c:/nxp/lpcxpresso_8.1.4_606/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/5.2.1/../../../../arm-none-eabi/bin/ld.exe: region `RamLoc8' overflowed by 340 bytes

collect2.exe: error: ld returned 1 exit status

make: *** [lcd_test.axf] Error 1