[求助] 库例程连接时出现Undefined symbol的问题

huster   2011-6-2 10:59 楼主

小弟接触stm32不久,抄了标准库(v3.5)里面的例程(flash) 建了一个工程,连接时总有下面的问题,没定义的这些在stm32f10x.h都找到了定义,网上找到的一些说法都不能解决,求高手解惑,多谢先。

 

Build target 'FLASH_02'

linking...
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol ADC1_2_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol ADC3_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol BusFaultException (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol CAN_RX1_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol CAN_SCE_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel1_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel2_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel3_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel4_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel5_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel6_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA1_Channel7_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA2_Channel1_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA2_Channel2_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA2_Channel3_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DMA2_Channel4_5_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol DebugMonitor (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI0_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI15_10_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI1_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI2_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI3_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI4_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol EXTI9_5_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FLASH_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FSMC_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol HardFaultException (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol I2C1_ER_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol I2C1_EV_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol I2C2_ER_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol I2C2_EV_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol MemManageException (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol NMIException (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol PVD_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol PendSVC (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol RCC_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol RTCAlarm_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol RTC_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol SDIO_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol SPI1_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol SPI2_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol SPI3_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol SVCHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol SysTickHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol TAMPER_IRQHandler (referred from stm32f10x_vector.o).

.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol USBWakeUp_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol USB_HP_CAN_TX_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol USB_LP_CAN_RX0_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol UsageFaultException (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol WWDG_IRQHandler (referred from stm32f10x_vector.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FLASH_ClearFlag (referred from main.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FLASH_ErasePage (referred from main.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FLASH_LockBank1 (referred from main.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FLASH_ProgramWord (referred from main.o).
.\obj\FLASH_02.axf: Error: L6218E: Undefined symbol FLASH_UnlockBank1 (referred from main.o).
Target not created

回复评论 (1)

要在stm32f10xconfig.h里打开你用到的功能块
点赞  2012-4-25 10:37
电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 京公网安备 11010802033920号
    写回复