Blinky

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

Blinky

838 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jordsan on Mon Mar 14 14:34:08 MST 2011
Just started today trying to compile and run some examples on an LPC1769. The blinky example project is set up to be used on a 13xx micro. I thought it would be very simple and straight forward to rewrite it to be used on a 17xx micro. The only problem is now I am getting the following errors:

**** Build of configuration Debug for project blinky ****

make all
Building file: ../src/blinky_main.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__CODE_RED -D__REDLIB__ -I"C:\Documents and Settings\jorged.CR\My Documents\lpcxpresso_3.6\workspace\CMSISv1p30_LPC17xx" -I"C:\Documents and Settings\jorged.CR\My Documents\lpcxpresso_3.6\workspace\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/blinky_main.d" -MT"src/blinky_main.d" -o"src/blinky_main.o" "../src/blinky_main.c"
In file included from ../src/blinky_main.c:14:
../src/gpio.h: In function 'GPIOSetValue':
../src/gpio.h:43: error: 'LPC_GPIO_TypeDef' has no member named 'MASKED_ACCESS'
../src/gpio.h: In function 'GPIOSetDir':
../src/gpio.h:58: error: 'LPC_GPIO_TypeDef' has no member named 'DIR'
../src/gpio.h:60: error: 'LPC_GPIO_TypeDef' has no member named 'DIR'
../src/blinky_main.c: In function 'main':
../src/blinky_main.c:29: error: 'LPC_SYSCON' undeclared (first use in this function)
../src/blinky_main.c:29: error: (Each undeclared identifier is reported only once
../src/blinky_main.c:29: error: for each function it appears in.)
make: *** [src/blinky_main.o] Error 1

Even though it would seem easy to fix this I have already spent a whole day chasing the problem with no luck.

Any help would be appreciated.
0 Kudos
Reply
3 Replies

815 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jordsan on Tue Mar 15 12:06:07 MST 2011
Thanks for the quick replies.
0 Kudos
Reply

815 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by NXP_Europe on Mon Mar 14 16:45:54 MST 2011
Hello jordsan,

[COLOR=#5174a3]http://ics.nxp.com/support/lpcxpresso/[/COLOR]

see "Example Projects for Code Red RD1768". The flashing led's example is shown there.
0 Kudos
Reply

815 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rmteo on Mon Mar 14 14:42:09 MST 2011
Get the correct examples http://ics.nxp.com/support/lpcxpresso/
0 Kudos
Reply