Running Linker
clnk -l"C:Program FilesCXSTM8Lib" -o Debugmusic.sm8 -mDebugmusic.map Debugmusic.lkf
#error clnk Debugmusic.lkf:1 symbol f__stext not defined (Debugstm8_interrupt_vector.o )//变量没有声明???
The command: "clnk -l"C:Program FilesCXSTM8Lib" -o Debugmusic.sm8 -mDebugmusic.map Debugmusic.lkf " has failed, the returned value is: 1
exit code=1.
----------- Project music - STM8 Cosmic - Configuration Debug -------------
Removing intermediate files ... Done!
----------- Project music - STM8 Cosmic - Configuration Debug -------------
Compiling main.c...
cxstm8 +mods +debug -pxp -no -pp -l -i"C:Program FilesCXSTM8Hstm8" -clDebug -coDebug main.c
main.c:
Compiling stm8_interrupt_vector.c...
cxstm8 +mods +debug -pxp -no -pp -l -i"C:Program FilesCXSTM8Hstm8" -clDebug -coDebug stm8_interrupt_vector.c
stm8_interrupt_vector.c:
Running Linker
clnk -l"C:Program FilesCXSTM8Lib" -o Debugmusic.sm8 -mDebugmusic.map Debugmusic.lkf
#error clnk Debugmusic.lkf:1 symbol f__stext not defined (Debugstm8_interrupt_vector.o )//变量没有声明???
The command: "clnk -l"C:Program FilesCXSTM8Lib" -o Debugmusic.sm8 -mDebugmusic.map Debugmusic.lkf " has failed, the returned value is: 1
exit code=1.
music.elf - 3 error(s), 0 warning(s)
extern @near void _stext(); /* startup routine */
//我知道你的问题出在哪里了,你用的是STVD自动生成的
//stm8_interrupt_vector.c文件,在使用modsl模?编译时,
//你须将extern void _stext(); /* startup routine */
//这句修改为extern @near void //_stext();/* startup routine */
//需要增加@near 关键字。请修改后再试。
37楼方法,解决问题。
一周热门 更多>