This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

blinky;stm32f10x;undefined symbol

Hello,in order to become familiar with the STM32F10X I first modified the Blinky program.But I have a problem.When I Build Target,there are errors as follows:

Build target 'STM32F10x'
compiling Blinky.c...
compiling Setup.c...
compiling spi_flash.c...
compiling lcd.c...
assembling STM32F10x.s...
compiling ImageBMP.c...
linking...
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol GPIO_ReadInputDataBit (referred from blinky.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol FLASH_PrefetchBufferCmd (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol FLASH_SetLatency (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol GPIO_EXTILineConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_ADCCLKConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_APB2PeriphClockCmd (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_DeInit (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_GetFlagStatus (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_GetSYSCLKSource (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_HCLKConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_HSEConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_PCLK1Config (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_PCLK2Config (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_PLLCmd (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_PLLConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_SYSCLKConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SysTick_CounterCmd (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SysTick_ITConfig (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SysTick_SetReload (referred from setup.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol GPIO_ResetBits (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol GPIO_SetBits (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_Cmd (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_I2S_GetFlagStatus (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_I2S_ReceiveData (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_I2S_SendData (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_Init (referred from spi_flash.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol GPIO_WriteBit (referred from lcd.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol RCC_APB1PeriphClockCmd (referred from lcd.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_DataSizeConfig (referred from lcd.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol SPI_I2S_DeInit (referred from lcd.o).
.\Obj\Blinky.axf: Error: L6218E: Undefined symbol __REV_HalfWord (referred from lcd.o).
Target not created


What did I forget, do wrong ?

Thnks for any help,

mouxiang

Parents
  • "in order to become familiar with the STM32F10X I first modified the Blinky program"

    That should be your second step - not your first!

    Your first step should be to build & run the blinky project unmodified.

    Then, once you know you can successfully build and run the project as supplied, you can move on to modifying it - knowing that you are starting from a working base.

    And always do your modifications one small step at a time, keeping copies of the previous working versions. That way, when something stops working, you can easily compare it against the previous working version to see exactly what changed...

    Here is an excellent free tool for comparing complete folder trees: http://winmerge.org/

Reply
  • "in order to become familiar with the STM32F10X I first modified the Blinky program"

    That should be your second step - not your first!

    Your first step should be to build & run the blinky project unmodified.

    Then, once you know you can successfully build and run the project as supplied, you can move on to modifying it - knowing that you are starting from a working base.

    And always do your modifications one small step at a time, keeping copies of the previous working versions. That way, when something stops working, you can easily compare it against the previous working version to see exactly what changed...

    Here is an excellent free tool for comparing complete folder trees: http://winmerge.org/

Children