STM8使用STVD开发环境问题
2020-04-25 来源:eefocus
1、编译时出现.ubsct size overflow
--http://blog.sina.com.cn/s/blog_817a5eb601018186.html
----------- Project roewe - STM8 Cosmic - Configuration Debug -------------
Running Linker
clnk -l'C:Program FilesCOSMICCXSTM8Lib' -o Debugroewe.sm8 -mDebugroewe.map Debugroewe.lkf
#error clnk Debugroewe.lkf:1 segment .ubsct size overflow (1343)
The command: 'clnk -l'C:Program FilesCOSMICCXSTM8Lib' -o Debugroewe.sm8 -mDebugroewe.map Debugroewe.lkf ' has failed, the returned value is: 1
exit code=1.
roewe.elf - 3 error(s), 0 warning(s)
解决方法:在“工程选项”(project settings)中,确定“Settings”下树状列表中工程被选中点选右边“C Compiler”选项卡,在C Compiler中有一个“Category'下拉列表,选此下拉列表中'General'会在下面显示Memory Models中把选项Short Stack[+mods0]选择更改为Long Stack[+modsl]
相关文章