lpcware

while enabling micro or editing DEBUGSTR to printf getting an error while compiling

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by krishna.rangadal on Sun Jun 29 23:07:09 MST 2014
Error Displayed like this While Compiling.....

make all
Building file: ../src/cr_startup_lpc18xx43xx.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M4 -D__MULTICORE_NONE -I"/home/krishna/workspace/ngx_xplorer_4330_pmc_states/inc" -I"/home/krishna/workspace/lpc_chip_43xx_lib/inc" -I"/home/krishna/workspace/ngx_xplorer_4330_board_lib/inc" -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/cr_startup_lpc18xx43xx.d" -MT"src/cr_startup_lpc18xx43xx.d" -o "src/cr_startup_lpc18xx43xx.o" "../src/cr_startup_lpc18xx43xx.c"
Finished building: ../src/cr_startup_lpc18xx43xx.c

Building file: ../src/pmc_states.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M4 -D__MULTICORE_NONE -I"/home/krishna/workspace/ngx_xplorer_4330_pmc_states/inc" -I"/home/krishna/workspace/lpc_chip_43xx_lib/inc" -I"/home/krishna/workspace/ngx_xplorer_4330_board_lib/inc" -Og -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/pmc_states.d" -MT"src/pmc_states.d" -o "src/pmc_states.o" "../src/pmc_states.c"
Finished building: ../src/pmc_states.c

Building file: ../src/sysinit.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_LPCOPEN -DCORE_M4 -D__MULTICORE_NONE -I"/home/krishna/workspace/ngx_xplorer_4330_pmc_states/inc" -I"/home/krishna/workspace/lpc_chip_43xx_lib/inc" -I"/home/krishna/workspace/ngx_xplorer_4330_board_lib/inc" -Og -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -fsingle-precision-constant -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -D__REDLIB__ -specs=redlib.specs -MMD -MP -MF"src/sysinit.d" -MT"src/sysinit.d" -o "src/sysinit.o" "../src/sysinit.c"
Finished building: ../src/sysinit.c

Building target: ngx_xplorer_4330_pmc_states.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"/home/krishna/workspace/ngx_xplorer_4330_board_lib/Debug" -L"/home/krishna/workspace/lpc_chip_43xx_lib/Debug" -Xlinker -Map="ngx_xplorer_4330_pmc_states.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -T "ngx_xplorer_4330_pmc_states_Debug.ld" -o "ngx_xplorer_4330_pmc_states.axf"  ./src/cr_startup_lpc18xx43xx.o ./src/pmc_states.o ./src/sysinit.o   -lngx_xplorer_4330_board_lib -llpc_chip_43xx_lib
/usr/local/lpcxpresso_7.2.0_153/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld: ngx_xplorer_4330_pmc_states.axf section `.text' will not fit in region `SPIFI'
/usr/local/lpcxpresso_7.2.0_153/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/bin/ld: region `SPIFI' overflowed by 8760 bytes
collect2: error: ld returned 1 exit status
make: *** [ngx_xplorer_4330_pmc_states.axf] Error 1

Please give any suggestions..

Thanks inadvance...

Outcomes