cancel
Showing results for 
Search instead for 
Did you mean: 

Can't build code of STM8S103F2P6 using STVD and COSMIC

TNaka.7
Associate

Hello

I want to rewrite code into STM8S103F2P6.

​But I can't build it.

​STVD outputted following error massage.

Compiling stm8_interrupt_vector.c...

cxstm8 +mods0 +debug -pxp -no -pp -l -istm8s_stdperiph_driver\inc -i"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Hstm8" -clDebug\ -coDebug\ stm8_interrupt_vector.c

stm8_interrupt_vector.c:

Running Linker

clnk -l"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Lib" -o Debug\test.sm8 -mDebug\test.map Debug\test.lkf 

#error clnk Debug\test.lkf:1 no default placement for segment .Signature

 The command: "clnk -l"C:\Program Files (x86)\COSMIC\FSE_Compilers\CXSTM8\Lib" -o Debug\test.sm8 -mDebug\test.map Debug\test.lkf " has failed, the returned value is: 1

exit code=1.

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

How do I solve this error?​

Please let me know if you have any missing information.

1 ACCEPTED SOLUTION

Accepted Solutions
TNaka.7
Associate

Self Solve Thanx

I use Universal Motor demo Board.

IDE are STVD+COSMIC.

​Project->Setting->Linker

I add a section as following in Code,Constance.

.const

.text

.Signature

That made program built.

View solution in original post

1 REPLY 1
TNaka.7
Associate

Self Solve Thanx

I use Universal Motor demo Board.

IDE are STVD+COSMIC.

​Project->Setting->Linker

I add a section as following in Code,Constance.

.const

.text

.Signature

That made program built.