Content originally posted in LPCWare by Ex-Zero on Sat Feb 11 09:01:01 MST 2012
Quote:
**** Build of configuration Debug for project CMSISv2p00_LPC11Uxx ****
...
[COLOR=Red]Invoking: MCU Archiver[/COLOR]
...
You are building a library, so there's nothing to debug :eek:
Use a real project, and the linker will hopefully create something you can execute and therefore debug :)
Quote:
**** Build of configuration Debug for project LPC11_Switch ****
make all
Building file: ../src/can.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -DCR_INTEGER_PRINTF -I"C:\nxp\workspace\CMSISv2p00_LPC11xx\inc" -O2 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-ahlnds=can.asm -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/can.d" -MT"src/can.d" -o"src/can.o" "../src/can.c"
Finished building: ../src/can.c
Building file: ../src/cr_startup_lpc11.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -DCR_INTEGER_PRINTF -I"C:\nxp\workspace\CMSISv2p00_LPC11xx\inc" -O2 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-ahlnds=cr_startup_lpc11.asm -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/cr_startup_lpc11.d" -MT"src/cr_startup_lpc11.d" -o"src/cr_startup_lpc11.o" "../src/cr_startup_lpc11.c"
Finished building: ../src/cr_startup_lpc11.c
Building file: ../src/i2.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -DCR_INTEGER_PRINTF -I"C:\nxp\workspace\CMSISv2p00_LPC11xx\inc" -O2 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-ahlnds=i2.asm -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/i2.d" -MT"src/i2.d" -o"src/i2.o" "../src/i2.c"
Finished building: ../src/i2.c
Building file: ../src/main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -DCR_INTEGER_PRINTF -I"C:\nxp\workspace\CMSISv2p00_LPC11xx\inc" -O2 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-ahlnds=main.asm -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o"src/main.o" "../src/main.c"
Finished building: ../src/main.c
Building file: ../src/uart.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -DCR_INTEGER_PRINTF -I"C:\nxp\workspace\CMSISv2p00_LPC11xx\inc" -O2 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-ahlnds=uart.asm -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/uart.d" -MT"src/uart.d" -o"src/uart.o" "../src/uart.c"
Finished building: ../src/uart.c
Building file: ../src/wdt.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p00_LPC11xx -DCR_INTEGER_PRINTF -I"C:\nxp\workspace\CMSISv2p00_LPC11xx\inc" -O2 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -Wa,-ahlnds=wdt.asm -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/wdt.d" -MT"src/wdt.d" -o"src/wdt.o" "../src/wdt.c"
Finished building: ../src/wdt.c
Building target: LPC11_Switch.axf
[COLOR=Red]Invoking: MCU Linker[/COLOR]
arm-none-eabi-gcc -nostdlib -L"C:\nxp\workspace\CMSISv2p00_LPC11xx\Debug" -Xlinker -Map=LPC11_Switch.map -Xlinker --gc-sections -mcpu=cortex-m0 -mthumb -T "LPC11_Switch_Debug.ld" -o"LPC11_Switch.axf" ./src/can.o ./src/cr_startup_lpc11.o ./src/i2.o ./src/main.o ./src/uart.o ./src/wdt.o -lCMSISv2p00_LPC11xx
Finished building target: LPC11_Switch.axf
make --no-print-directory post-build
Performing post-build steps
arm-none-eabi-size LPC11_Switch.axf; # arm-none-eabi-objcopy -O binary LPC11_Switch.axf LPC11_Switch.bin ; checksum -p LPC11C14_301 -d LPC11_Switch.bin;
text data bss dec hex filename
14352 52 1012 15416 3c38 LPC11_Switch.axf