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

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

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

447 Views
lpcware
NXP Employee
NXP Employee
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...
Labels (1)
0 Kudos
4 Replies

431 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Jun 30 03:35:04 MST 2014
Also, make sure that you have actually activated your LPCXpresso IDE installation. Unactivated, you will be unable to link (or debug) images bigger than 8KB. Given the limited number of files in your link step, I suspect this may well be your problem.

The Welcome page, displayed by default in the editor view when you first start the product, should confirm what license you are running. For more information on activating, read the LPCXpresso User Manual (available via the Help menu or in PDF inside the install directory).

Regards,
LPCXpresso Support


0 Kudos

431 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Mon Jun 30 00:27:48 MST 2014
Read the Memory Configuration Editor section in the User Guide...
0 Kudos

431 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by krishna.rangadal on Sun Jun 29 23:42:38 MST 2014
how to change memory region size...
0 Kudos

431 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Jun 29 23:24:47 MST 2014
The error message says it all - your code is too big to fit in the memory region 'SPIFI'
0 Kudos