STVD编译stm8s工程报如下错误:
Running Linker
clnk -l"C:\Program Files (x86)\COSMIC\CXSTM8\Lib" -o Debug\stm8s_sx1276.sm8 -mDebug\stm8s_sx1276.map Debug\stm8s_sx1276.lkf
#error clnk Debug\stm8s_sx1276.lkf:1 segment .ubsct size overflow (313)
The command: "clnk -l"C:\Program Files (x86)\COSMIC\CXSTM8\Lib" -o Debug\stm8s_sx1276.sm8 -mDebug\stm8s_sx1276.map Debug\stm8s_sx1276.lkf " has failed, the returned value is: 1
exit code=1.
解决方法:在“工程选项”(project->settings)中,确定“Settings”下树状列表中工程被选中点选右边“C Compiler”选项卡,在C Compiler中有一个“Category"下拉列表,选此下拉列表中"General"会在下面显示Memory Models,在Memory Models中把选项Short Stack[+mods0]选择更改为Long Stack[+modsl]。
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Running Linker
clnk -m Debug\stm8l051_sx1278.map -l"C:\Program Files (x86)\COSMIC\CXSTM8\Lib" -o Debug\stm8l051_sx1278.sm8 Debug\stm8l051_sx1278.lkf
#error clnk Debug\stm8l051_sx1278.lkf:1 bad address (0x201) for zero page symbol _CRC_Value
#error clnk Debug\stm8l051_sx1278.lkf:1 bad address (0x202) for zero page symbol _RF_EX0_STATUS
#error clnk Debug\stm8l051_sx1278.lkf:1 bad address (0x200) for zero page symbol _SX1278_RLEN
The command: "clnk -m Debug\stm8l051_sx1278.map -l"C:\Program Files (x86)\COSMIC\CXSTM8\Lib" -o Debug\stm8l051_sx1278.sm8 Debug\stm8l051_sx1278.lkf " has failed, the returned value is: 1
exit code=1.
编译stm8l项目报上面错误,按该贴相同方法配置后问题解决
阅读(2415) | 评论(0) | 转发(0) |