lpcware

Build Problems, whats wrong with my includes?

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by cell85 on Thu Mar 01 19:47:43 MST 2012
Hi I'm Using LPCXpresso 4.20

and I'm building a Project with CMSISv1p30 and I'm trying to use the Functions from the LPC Drivers Lib such as

SystemInit'

I2C_MasterTransferData'

... I included the CMSIS 1p30\inc path and the Drivers\inc Path.

And I get the following building errors:



**** Build of configuration Debug for project MinIMU9AHRS ****

make all
Building file: ../src/Compass.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/Compass.d" -MT"src/Compass.d" -o"src/Compass.o" "../src/Compass.c"
Finished building: ../src/Compass.c

Building file: ../src/DCM.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/DCM.d" -MT"src/DCM.d" -o"src/DCM.o" "../src/DCM.c"
Finished building: ../src/DCM.c

Building file: ../src/I2C.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/I2C.d" -MT"src/I2C.d" -o"src/I2C.o" "../src/I2C.c"
Finished building: ../src/I2C.c

Building file: ../src/MinIMU9AHRS.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/MinIMU9AHRS.d" -MT"src/MinIMU9AHRS.d" -o"src/MinIMU9AHRS.o" "../src/MinIMU9AHRS.c"
../src/MinIMU9AHRS.c: In function 'delay':
Finished building: ../src/MinIMU9AHRS.c
../src/MinIMU9AHRS.c:144:2: warning: implicit declaration of function 'Timer0_Wait'

Building file: ../src/Output.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/Output.d" -MT"src/Output.d" -o"src/Output.o" "../src/Output.c"
../src/Output.c: In function 'print_str':
Finished building: ../src/Output.c

Building file: ../src/Vector.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/Vector.d" -MT"src/Vector.d" -o"src/Vector.o" "../src/Vector.c"
Finished building: ../src/Vector.c

../src/Output.c:66:5: warning: implicit declaration of function 'UART_SendString'
Building file: ../src/cr_startup_lpc17.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -D__NEWLIB__ -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/cr_startup_lpc17.d" -MT"src/cr_startup_lpc17.d" -o"src/cr_startup_lpc17.o" "../src/cr_startup_lpc17.c"
Finished building: ../src/cr_startup_lpc17.c

Building file: ../src/matrix.c
Invoking: MCU C Compiler
arm-none-eabi-gcc -DDEBUG -D__CODE_RED -D__USE_CMSIS=CMSISv1p30_LPC17xx -D__NEWLIB__ -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\mcu_lib\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\CMSISv1p30_LPC17xx\inc" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"src/matrix.d" -MT"src/matrix.d" -o"src/matrix.o" "../src/matrix.c"
Finished building: ../src/matrix.c

Building target: MinIMU9AHRS.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -Xlinker -Map=MinIMU9AHRS.map -Xlinker --gc-sections -mcpu=cortex-m3 -mthumb -T "MinIMU9AHRS_Debug.ld" -o"MinIMU9AHRS.axf"  ./src/Compass.o ./src/DCM.o ./src/I2C.o ./src/MinIMU9AHRS.o ./src/Output.o ./src/Vector.o ./src/cr_startup_lpc17.o ./src/matrix.o  
./src/cr_startup_lpc17.o: In function `ResetISR':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/cr_startup_lpc17.c:254: undefined reference to `SystemInit'
./src/I2C.o: In function `i2c_read':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/I2C.c:64: undefined reference to `I2C_MasterTransferData'
./src/I2C.o: In function `i2c_write':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/I2C.c:86: undefined reference to `I2C_MasterTransferData'
./src/I2C.o: In function `i2c_init':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/I2C.c:105: undefined reference to `PINSEL_ConfigPin'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/I2C.c:107: undefined reference to `PINSEL_ConfigPin'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/I2C.c:110: undefined reference to `I2C_Init'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/I2C.c:113: undefined reference to `I2C_Cmd'
./src/MinIMU9AHRS.o: In function `delay':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/MinIMU9AHRS.c:144: undefined reference to `Timer0_Wait'
./src/MinIMU9AHRS.o: In function `setup':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/MinIMU9AHRS.c:183: undefined reference to `SystemCoreClock'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/MinIMU9AHRS.c:183: undefined reference to `SystemCoreClock'
./src/Output.o: In function `init_uart':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:49: undefined reference to `PINSEL_ConfigPin'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:51: undefined reference to `PINSEL_ConfigPin'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:58: undefined reference to `UART_Init'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:60: undefined reference to `UART_TxCmd'
./src/Output.o: In function `print_str':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:66: undefined reference to `UART_SendString'
./src/Output.o: In function `print_line':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:74: undefined reference to `UART_SendString'
./src/Output.o: In function `printdata':
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:100: undefined reference to `UART_SendString'
C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\MinIMU9AHRS\Debug/../src/Output.c:115: undefined reference to `UART_SendString'
collect2: ld returned 1 exit status
make: *** [MinIMU9AHRS.axf] Error 1



what is wrong ? please help

:(

Outcomes