Release mode of Debug

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

Release mode of Debug

305 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by masterboy on Mon Mar 25 01:37:45 MST 2013
Hi,

I have a problem with Debug in Release mode. When I create this simple example:
#ifdef __USE_CMSIS
#include "LPC13Uxx.h"
#endif

#include <cr_section_macros.h>
#include <NXP/crp.h>

__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

int main(void) {


while(1) {

}
return 0 ;
}


In Debug mode is Debug OK but it shows error in Release mode:
make all 
Building file: ../src/cr_startup_lpc13u.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DNDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p10_LPC13Uxx -I"U:\LPCXpresso\LPC1347\CMSISv2p10_LPC13Uxx\inc" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/cr_startup_lpc13u.d" -MT"src/cr_startup_lpc13u.d" -o "src/cr_startup_lpc13u.o" "../src/cr_startup_lpc13u.c"
Finished building: ../src/cr_startup_lpc13u.c
 
Building file: ../src/main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DNDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2p10_LPC13Uxx -I"U:\LPCXpresso\LPC1347\CMSISv2p10_LPC13Uxx\inc" -Os -g -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/main.d" -MT"src/main.d" -o "src/main.o" "../src/main.c"
Finished building: ../src/main.c
 
Building target: bootloader.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map="bootloader.map" -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "bootloader_Release.ld" -o "bootloader.axf"  ./src/cr_startup_lpc13u.o ./src/main.o   -lCMSISv2p10_LPC13Uxx
c:/nxp/lpcxpresso_5.1.2_2065/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.6.2/../../../../arm-none-eabi/bin/ld.exe: cannot find -lCMSISv2p10_LPC13Uxx
collect2: ld returned 1 exit status
make: *** [bootloader.axf] Error 1

Why? Is there somethink wrong set?
0 Kudos
Reply
1 Reply

281 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Mon Mar 25 02:00:02 MST 2013

Quote: masterboy

c:/nxp/lpcxpresso_5.1.2_2065/.../bin/ld.exe: [COLOR=Red]cannot find -lCMSISv2p10_LPC13Uxx[/COLOR]
collect2: ld returned 1 exit status
make: *** [bootloader.axf] Error 1
Why? Is there somethink wrong set?



Because you didn't compile your CMSIS in Release mode :eek:

That's what compiler is trying to tell you
0 Kudos
Reply