keil5中Undefined symbol XXX 的解决方法
…\OBJ\LED.axf: Error: L6218E: Undefined symbol SPI_Cmd (referred from spi.o).
…\OBJ\LED.axf: Error: L6218E: Undefined symbol SPI_I2S_GetFlagStatus (referred from spi.o).
…\OBJ\LED.axf: Error: L6218E: Undefined symbol SPI_I2S_ReceiveData (referred from spi.o).
…\OBJ\LED.axf: Error: L6218E: Undefined symbol SPI_I2S_SendData (referred from spi.o).
…\OBJ\LED.axf: Error: L6218E: Undefined symbol SPI_Init (referred from spi.o).
Not enough information to list image symbols.
一开始我以为是编译的路径没包含进去后来发现不是,而是要改一下下面的:
然后编译就通过了。