2016-05-13 01:26 PM
Hello forum,
i am currently trying to use the STM Standard Peripheral Library with ST Visual Develop & Cosmic C Compiler. I downloaded the Standard Peripheral Library and included the header files in 'Include Files' in my Project Directory. I inlcuded the header file 'stm8s_spi.h' but as soon as i want to use a SPI function (such as 'SPI_DeInit()' and compile i get an error like this:Running Linker
clnk -m Debug\adxl345_spi.map -l
''C:\Program Files (x86)\COSMIC\FSE_Compilers\Lib''
-o Debug\adxl345_spi.sm8 Debug\adxl345_spi.lkf
#error clnk Debug\adxl345_spi.lkf:1 symbol _SPI_DeInit not defined (Debug\main.o )
The command:
''clnk -m Debug\adxl345_spi.map -l''
C:\Program Files (x86)\COSMIC\FSE_Compilers\Lib
'' -o Debug\adxl345_spi.sm8 Debug\adxl345_spi.lkf ''
has failed, the returned value
is
: 1
exit code=1.
Do you have any idea what i miss?
With best regards
#i2c #spi #crosstalk #uart #stm8
2016-05-20 10:21 AM
Header files don't contain code, you must also supply the compiled library code to the linker for it to have something to link too.