STVD+Cosmic CxSTM8 32K 定义LONG INT 出错,不知道要加什么库?
错误指示如下:
clnk -l"C:\Program Files\COSMIC\CXSTM8\Lib" -o Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.sm8 -mDebug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.map Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.lkf
#error clnk Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.lkf:1 symbol c_rtol not defined (Debug\stm8_interrupt_vector.o )
#error clnk Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.lkf:1 symbol c_lgsbc not defined (Debug\stm8_interrupt_vector.o )
#error clnk Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.lkf:1 symbol c_lgadc not defined (Debug\stm8_interrupt_vector.o )
#error clnk Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.lkf:1 symbol c_ladc not defined (Debug\stm8_interrupt_vector.o )
The command: "clnk -l"C:\Program Files\COSMIC\CXSTM8\Lib" -o Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.sm8 -mDebug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.map Debug\2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.lkf " has failed, the returned value is: 1
exit code=1.
2010-06-06-m360-上电堵转后期电子定位-带电压监控-stm8s.elf - 6 error(s), 0 warning(s)
变量定义如下:
volatile unsigned long int __sram_w1_xc_j1 = 0; //开终点位置数据
volatile unsigned long int __sram_w1_xc_j2 = 0; //关终点位置数据
volatile unsigned long int __sram_w1_xc_any = 0; //当前位置数据
把long去掉编译就正确了!不知道为何?好像是少了库还什么,那位知道告诉一声,谢谢! |