Content originally posted in LPCWare by nsalzman on Tue Oct 04 13:39:18 MST 2011
Quote: TheFallGuy
If you have the same problem, you probably need to read the same FAQ... Hint: compiler settings can be applied to a project, a directory, or a file. If you have set it on a file, you won't see it on the project...
Tried that, no luck. All I am doing is installing the IDE, importing all of the projects from one of the example archives (NXP_LPCXpresso1769_MCB1700_2011-02-11.zip) and trying to build the project 'timer'. The build fails.
Switching to the command line and going to the timer\Debug directory and running make clean followed by make all produces the following output:
Building file: ../src/cr_startup_lpc176x.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17x
x -I"D:\projects\lpcxpresso\samples\1769\lpcx\CMSISv2_LPC17xx\inc" -O0 -Os -g3 -
Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcp
u=cortex-m3 -mthumb -MMD -MP -MF"src/cr_startup_lpc176x.d" -MT"src/cr_startup_lp
c176x.d" -o"src/cr_startup_lpc176x.o" "../src/cr_startup_lpc176x.c"
../src/cr_startup_lpc176x.c:51:28: fatal error: system_LPC17xx.h: No such file o
r directory
compilation terminated.
make: *** [src/cr_startup_lpc176x.o] Error 1
The -I switch refers to a location that is not and has never been on my machine, I assume it refers to the location of that file when the project was originally exported. When I go back to the IDE and look at the properties for the file cr_startup_lpc176x.c it shows the following options for the compiler:
-D__REDLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv2_LPC17xx -I"D:\LPCXpresso\workspace3\CMSISv2_LPC17xx\inc" -O0 -Os -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb
Where the -I switch refers to the proper location on the computer. These options are the same for all of the files in the project. Scattered throughout the project (timer.map, makefile, etc.) are references to the directory that is not on my computer. The machine is running Windows XP sp3
When I follow the exact same steps on a Windows 7 machine, it works fine.
Please help.