Problem Building Examples of LPC1114

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

Problem Building Examples of LPC1114

774 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by furkan.yuksel on Tue May 31 23:38:59 MST 2011
Hi,

I'm imported blinky example (with CMSIS) but when I build it I get this error message;
---------------------------------------------------------------------------------
make all
Building file: ../src/blinky.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__USE_CMSIS=CMSISv1p30_LPC11xx -DDEBUG -D__CODE_RED -D__REDLIB__ -I"C:\Documents and Settings\xp\My Documents\lpcxpresso_3.6.3_317\workspace\CMSISv1p30_LPC11xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m0 -mthumb -MMD -MP -MF"src/blinky.d" -MT"src/blinky.d" -o"src/blinky.o" "../src/blinky.c"
../src/blinky.c:31:21: error: timer16.h: No such file or directory
../src/blinky.c:32:23: error: clkconfig.h: No such file or directory
../src/blinky.c:33:18: error: gpio.h: No such file or directory
../src/blinky.c: In function 'main':
../src/blinky.c:53: warning: implicit declaration of function 'GPIOInit'
../src/blinky.c:63: warning: implicit declaration of function 'init_timer16'
../src/blinky.c:69: warning: implicit declaration of function 'enable_timer16'
../src/blinky.c:72: warning: implicit declaration of function 'GPIOSetDir'
../src/blinky.c:80: warning: implicit declaration of function 'GPIOSetValue'
make: *** [src/blinky.o] Error 1
------------------------------------------------------------------------------

I thing this problem is about GCC. How can I get rid of it?
0 Kudos
Reply
2 Replies

731 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by furkan.yuksel on Wed Jun 01 03:49:43 MST 2011
Thans for your help Rob65 , your advise solved my problem.
0 Kudos
Reply

731 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Rob65 on Wed Jun 01 00:26:42 MST 2011
Hi,

this is not a GCC problem.
The problem is that GCC cannot find the include files containing the functions that are called by your blinky.c

Unfortunately NXP decided to rearrange the whole structure of the example projects. My version of blinky has a blinky_main.c and clkconfig, timer and gpio .c and .h files in the same src/ directory.

You should either place those in the same directory or point GCC to the proper place where those can be found (in the project properties C/C++ Builder -> Settings -> tab 'Tool Settings' -> MCU C Compiler -> Directories).
In this case you should also add the libraries to the MCU Linker -> Libraries section of that same tab.

But if you just download the 'LPCXpresso example projects for the lpc1114' (version V2.0) from this page and import [I]all[/I] project in the .zip files using "Start Here - Import Example project(s)" from the Quickstart you should be OK.

Regards,

Rob
0 Kudos
Reply