2016-06-14 02:12 AM
Hi friends
I'm new with stm8 microcontrollers, i have download st peripheral library and stm8 cosmic free compiler. after building project i see this errors:--------------------------- Project 5 - STM8 Cosmic - Configuration Release -------------Removing intermediate files ... Done!----------- Project 5 - STM8 Cosmic - Configuration Release -------------Compiling main.c...cxstm8 +mods0 -pp -dSTM8S105 -i..\4 -iinc -iD:\COSMIC\FSE_Compilers\CXSTM8\Hstm8 -clRelease\ -coRelease\ main.cmain.c:Compiling src\stm8s_gpio.c...cxstm8 +mods0 -pp -dSTM8S105 -i..\4 -iinc -iD:\COSMIC\FSE_Compilers\CXSTM8\Hstm8 -clRelease\ -coRelease\ src\stm8s_gpio.csrc\stm8s_gpio.c:Compiling stm8_interrupt_vector.c...cxstm8 +mods0 -pp -dSTM8S105 -i..\4 -iinc -iD:\COSMIC\FSE_Compilers\CXSTM8\Hstm8 -clRelease\ -coRelease\ stm8_interrupt_vector.cstm8_interrupt_vector.c:Running Linkerclnk -lD:\COSMIC\FSE_Compilers\CXSTM8\Lib -o Release\5.sm8 -mRelease\5.map Release\5.lkf #error clnk Release\5.lkf:1 symbol _assert_failed not defined (Release\stm8s_gpio.o ) The command: ''clnk -lD:\COSMIC\FSE_Compilers\CXSTM8\Lib -o Release\5.sm8 -mRelease\5.map Release\5.lkf '' has failed, the returned value is: 1exit code=1.5.elf - 3 error(s), 0 warning(s)----------------------2018-03-18 01:28 PM
You probably have the full assert enabled in StdPeriph. You can either undefine USE_FULL_ASSERT in stm8s_conf.h, or define your own assert_failed(uint8_t* file, uint32_t line) in a source file.