cancel
Showing results for 
Search instead for 
Did you mean: 

stm8 cosmic problem on stvd

ntorabi85
Associate
Posted on June 14, 2016 at 11:12

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.c

main.c:

Compiling src\stm8s_gpio.c...

cxstm8 +mods0 -pp -dSTM8S105 -i..\4 -iinc -iD:\COSMIC\FSE_Compilers\CXSTM8\Hstm8  -clRelease\ -coRelease\ src\stm8s_gpio.c

src\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.c

stm8_interrupt_vector.c:

Running Linker

clnk -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: 1

exit code=1.

5.elf - 3 error(s), 0 warning(s)

----------------------
1 REPLY 1
li07
Associate
Posted on March 18, 2018 at 21:28

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.