Build Problems, whats wrong with my includes?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Build Problems, whats wrong with my includes?

1,128件の閲覧回数
lpcware
NXP Employee
NXP Employee
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

0 件の賞賛
返信
5 返答(返信)

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cell85 on Fri Mar 02 09:25:40 MST 2012

Quote: TheFallGuy
Read the documents included with the board - you register on their website, which then allows you to download examples etc.



thats the problem i dont own the board !
0 件の賞賛
返信

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Fri Mar 02 04:54:19 MST 2012
Read the documents included with the board - you register on their website, which then allows you to download examples etc.
0 件の賞賛
返信

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cell85 on Fri Mar 02 03:18:46 MST 2012
ok it seems that I dont have the LPCXpresso BaseBoard LIB from Embedded Artists.

So I dont have any UART_SendString function and Timer0_wait function.

:(

Is there a way to download those Lib's ?

WR
Sam
0 件の賞賛
返信

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by atomicdog on Thu Mar 01 21:00:09 MST 2012
You should always start by fixing the [B]first [/B]error/warning you see. A lot of times the ones after that will disappear because they were related.
Finished building: ../src/MinIMU9AHRS.c
../src/MinIMU9AHRS.c:144:2: warning: implicit declaration of function 'Timer0_Wait'
  
This is an error disguised as a warning.

Where is Timer_Wait? is it being compiled and linked?
0 件の賞賛
返信

905件の閲覧回数
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cell85 on Thu Mar 01 20:28:11 MST 2012
updated build error log, last lines are important:

  
Building file: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_ssp.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\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\CoreSupport" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\DeviceSupport\NXP\LPC17xx" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"source/lpc17xx_ssp.d" -MT"source/lpc17xx_ssp.d" -o"source/lpc17xx_ssp.o" "C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_ssp.c"
Finished building: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_ssp.c
 
Building file: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_timer.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\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\CoreSupport" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\DeviceSupport\NXP\LPC17xx" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"source/lpc17xx_timer.d" -MT"source/lpc17xx_timer.d" -o"source/lpc17xx_timer.o" "C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_timer.c"
Finished building: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_timer.c
 
Building file: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_uart.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\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\CoreSupport" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\DeviceSupport\NXP\LPC17xx" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"source/lpc17xx_uart.d" -MT"source/lpc17xx_uart.d" -o"source/lpc17xx_uart.o" "C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_uart.c"
Finished building: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_uart.c
 
Building file: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_wdt.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\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\CoreSupport" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Drivers\include" -I"C:\Users\SuperK\5-Coding und uC\1-IMU200X\0-FW\lpc17xx.cmsis.driver.library\Core\CM3\DeviceSupport\NXP\LPC17xx" -O0 -g3 -Wall -c -fmessage-length=0 -fno-builtin -ffunction-sections -fdata-sections -mcpu=cortex-m3 -mthumb -MMD -MP -MF"source/lpc17xx_wdt.d" -MT"source/lpc17xx_wdt.d" -o"source/lpc17xx_wdt.o" "C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_wdt.c"
Finished building: C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_wdt.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  ./source/lpc17xx_adc.o ./source/lpc17xx_can.o ./source/lpc17xx_clkpwr.o ./source/lpc17xx_dac.o ./source/lpc17xx_emac.o ./source/lpc17xx_gpdma.o ./source/lpc17xx_gpio.o ./source/lpc17xx_i2c.o ./source/lpc17xx_i2s.o ./source/lpc17xx_libcfg_default.o ./source/lpc17xx_mcpwm.o ./source/lpc17xx_nvic.o ./source/lpc17xx_pinsel.o ./source/lpc17xx_pwm.o ./source/lpc17xx_qei.o ./source/lpc17xx_rit.o ./source/lpc17xx_rtc.o ./source/lpc17xx_spi.o ./source/lpc17xx_ssp.o ./source/lpc17xx_timer.o ./source/lpc17xx_uart.o ./source/lpc17xx_wdt.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/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 `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'
./source/lpc17xx_clkpwr.o: In function `CLKPWR_GetPCLK':
C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_clkpwr.c:194: undefined reference to `SystemCoreClock'
C:/Users/SuperK/5-Coding und uC/1-IMU200X/0-FW/lpc17xx.cmsis.driver.library/Drivers/source/lpc17xx_clkpwr.c:194: undefined reference to `SystemCoreClock'
collect2: ld returned 1 exit status
make: *** [MinIMU9AHRS.axf] Error 1
0 件の賞賛
返信