ChibiOS LPC 1768

ChibiOS public support forum for topics related to the NXP LPC family of Cortex-M micro-controllers.

Moderator: theShed

karthikrao
Posts: 1
Joined: Tue Dec 30, 2014 12:06 pm

ChibiOS LPC 1768

Postby karthikrao » Tue Dec 30, 2014 1:02 pm

I am trying to get Chibi OS compile for the ARM mbed LPC1768 board. I found someone already did that, available at
https://github.com/stepmc/chibios-lpc1768

But I get these errors related to i2c when I compile. How can I fix it ?

Code: Select all

arm-none-eabi-gcc -c -mcpu=cortex-m3 -O2 -ggdb -fomit-frame-pointer -ffunction-sections -fdata-sections -Wall -Wextra -Wstrict-prototypes -Wa,-alms=os/hal/src/hal.lst -DLPC1768 -D__NEWLIB__  -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -MD -MP -MF .dep/hal.o.d -mthumb -DTHUMB -I . -I.//os/ports/common/ARMCMx/CMSIS/include -I.//os/ports/GCC/ARMCMx -I.//os/ports/GCC/ARMCMx/LPC17xx -I.//os/kernel/include -I.//os/hal/include -I.//os/hal/platforms/LPC17xx -I.//boards/LPC1768 -I.//os/various os/hal/src/hal.c -o os/hal/src/hal.o
In file included from .//os/hal/include/i2c.h:91:0,
                 from .//os/hal/include/hal.h:41,
                 from os/hal/src/hal.c:30:
.//os/hal/platforms/LPC17xx/i2c_lld.h:63:48: error: unknown type name 'i2cstatus_t'
 typedef void (*i2ccallback_t)(I2CDriver *i2cp, i2cstatus_t sts);
                                                ^
.//os/hal/platforms/LPC17xx/i2c_lld.h:87:3: error: unknown type name 'i2ccallback_t'
   i2ccallback_t             id_callback;
   ^
In file included from .//os/hal/include/hal.h:41:0,
                 from os/hal/src/hal.c:30:
.//os/hal/include/i2c.h:212:3: error: unknown type name 'I2CSlaveConfig'
   void i2cMasterTransmitTimeout(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg,
   ^
.//os/hal/include/i2c.h:216:3: error: unknown type name 'I2CSlaveConfig'
   void i2cMasterReceiveTimeout(I2CDriver *i2cp, const I2CSlaveConfig *i2cscfg,
   ^
.//os/hal/include/i2c.h:221:38: error: unknown type name 'i2cflags_t'
   void i2cAddFlagsI(I2CDriver *i2cp, i2cflags_t mask);
                                      ^
make: *** [os/hal/src/hal.o] Error 1




Thank You! :)

Return to “LPC Support”

Who is online

Users browsing this forum: No registered users and 3 guests