Skip to main content
TNaka.7
Associate
November 6, 2020
Solved

Can't build code of STM8S103F2P6 using STVD and COSMIC

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.

​

    This topic has been closed for replies.
    TNaka.7
    TNaka.7Best answer
    Associate
    November 6, 2020

    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.

    1 reply

    TNaka.7
    TNaka.7AuthorBest answer
    Associate
    November 6, 2020

    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.