初级会员
- 积分
- 151
- 金钱
- 151
- 注册时间
- 2014-9-29
- 在线时间
- 10 小时
|
5金钱
编译错误提示如下,time 4 spi i2c 接口都是没有用到的,请遇到过的人指示,谢谢
Compiling ite626x\io.c...
cxstm8 +mods0 +debug -pxp +compact +split -pp -l -iite626x -iite626x_v206 -imicro -iuser -ilib\inc -iite626x -iite626x -i"C:\Program Files\COSMIC\CXSTM8\Hstm8" -i"C:\Program Files\COSMIC\CXSTM8\Lib" -clDebug\ -coDebug\ ite626x\io.c
#error cpstm8 lib\inc\stm8s.h:223(14) missing enumeration member
#error cpstm8 lib\inc\stm8s.h:223(13) missing ;
#error cpstm8 lib\inc\stm8s_adc1.h:299(51) bad proto argument type
#error cpstm8 lib\inc\stm8s_adc1.h:299(36+15) missing )
#error cpstm8 lib\inc\stm8s_adc1.h:302(56) missing ;
#error cpstm8 lib\inc\stm8s_adc1.h:304(46) old style argument declaration
#error cpstm8 lib\inc\stm8s_adc1.h:305(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_adc1.h:306(42) bad proto argument type
#error cpstm8 lib\inc\stm8s_adc1.h:306(35+7) missing )
#error cpstm8 lib\inc\stm8s_adc1.h:306(69) missing ;
#error cpstm8 lib\inc\stm8s_adc1.h:308(83) bad proto argument type
#error cpstm8 lib\inc\stm8s_adc1.h:308(57+26) missing )
#error cpstm8 lib\inc\stm8s_adc1.h:309(30+15) invalid void declaration
#error cpstm8 lib\inc\stm8s_adc1.h:313(68) bad proto argument type
#error cpstm8 lib\inc\stm8s_adc1.h:313(53+15) missing )
#error cpstm8 lib\inc\stm8s_adc1.h:313(95) missing ;
#error cpstm8 lib\inc\stm8s_awu.h:129(37) old style argument declaration
#error cpstm8 lib\inc\stm8s_beep.h:102(38) old style argument declaration
#error cpstm8 user\stm8s_clk.h:347(40) old style argument declaration
#error cpstm8 user\stm8s_clk.h:348(40) old style argument declaration
#error cpstm8 user\stm8s_clk.h:349(40) old style argument declaration
#error cpstm8 user\stm8s_clk.h:350(40) old style argument declaration
#error cpstm8 user\stm8s_clk.h:351(48) old style argument declaration
#error cpstm8 user\stm8s_clk.h:352(51) old style argument declaration
#error cpstm8 user\stm8s_clk.h:353(57) old style argument declaration
#error cpstm8 user\stm8s_clk.h:354(68) bad proto argument type
#error cpstm8 user\stm8s_clk.h:354(54+14) missing )
#error cpstm8 user\stm8s_clk.h:354(95) missing ;
#error cpstm8 user\stm8s_clk.h:358(39) bad proto argument type
#error cpstm8 user\stm8s_clk.h:358(33+6) missing )
#error cpstm8 user\stm8s_clk.h:358(66) missing ;
#error cpstm8 lib\inc\stm8s_flash.h:253(44) old style argument declaration
#error cpstm8 lib\inc\stm8s_gpio.h:142(77) bad proto argument type
#error cpstm8 lib\inc\stm8s_gpio.h:142(69+8) missing )
#error cpstm8 lib\inc\stm8s_i2c.h:142(104) missing ;
#error cpstm8 lib\inc\stm8s_i2c.h:500(66) bad proto argument type
#error cpstm8 lib\inc\stm8s_i2c.h:500(56+10) missing )
#error cpstm8 lib\inc\stm8s_i2c.h:502(75) missing ;
#error cpstm8 lib\inc\stm8s_i2c.h:504(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_i2c.h:505(47) old style argument declaration
#error cpstm8 lib\inc\stm8s_i2c.h:506(46) old style argument declaration
#error cpstm8 lib\inc\stm8s_i2c.h:507(50) old style argument declaration
#error cpstm8 lib\inc\stm8s_i2c.h:508(49) old style argument declaration
#error cpstm8 lib\inc\stm8s_i2c.h:510(68) old style argument declaration
#error cpstm8 lib\inc\stm8s_i2c.h:511(39) bad proto argument type
#error cpstm8 lib\inc\stm8s_i2c.h:511(33+6) missing )
#error cpstm8 lib\inc\stm8s_i2c.h:511(66) missing ;
#error cpstm8 lib\inc\stm8s_spi.h:303(37) old style argument declaration
#error cpstm8 lib\inc\stm8s_spi.h:304(39) bad proto argument type
#error cpstm8 lib\inc\stm8s_spi.h:304(33+6) missing )
#error cpstm8 lib\inc\stm8s_spi.h:304(66) missing ;
#error cpstm8 lib\inc\stm8s_spi.h:307(56) old style argument declaration
#error cpstm8 lib\inc\stm8s_spi.h:309(49) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:530(38) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:531(49) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:532(42) bad proto argument type
#error cpstm8 lib\inc\stm8s_tim1.h:532(35+7) missing )
#error cpstm8 lib\inc\stm8s_tim1.h:532(69) missing ;
#error cpstm8 lib\inc\stm8s_tim1.h:547(54) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:549(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:553(56) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:563(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:564(44) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:565(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:566(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:567(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:568(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:569(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:570(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:571(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:572(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:573(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim1.h:582(50) bad proto argument type
#error cpstm8 lib\inc\stm8s_tim1.h:582(38+12) missing )
#error cpstm8 lib\inc\stm8s_tim1.h:582(77) missing ;
#error cpstm8 lib\inc\stm8s_tim2.h:286(38) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:287(42) bad proto argument type
#error cpstm8 lib\inc\stm8s_tim2.h:287(35+7) missing )
#error cpstm8 lib\inc\stm8s_tim2.h:287(69) missing ;
#error cpstm8 lib\inc\stm8s_tim2.h:289(54) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:296(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:297(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:298(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:299(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:300(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim2.h:305(50) bad proto argument type
#error cpstm8 lib\inc\stm8s_tim2.h:305(38+12) missing )
#error cpstm8 lib\inc\stm8s_tim2.h:305(77) missing ;
#error cpstm8 lib\inc\stm8s_tim4.h:134(38) old style argument declaration
#error cpstm8 lib\inc\stm8s_tim4.h:135(42) bad proto argument type
#error cpstm8 lib\inc\stm8s_tim4.h:135(35+7) missing )
#error cpstm8 lib\inc\stm8s_tim4.h:135(69) missing ;
#error cpstm8 lib\inc\stm8s_tim4.h:140(51) old style argument declaration
#error cpstm8 lib\inc\stm8s_uart1.h:343(39) old style argument declaration
#error cpstm8 lib\inc\stm8s_uart1.h:344(45) bad proto argument type
#error cpstm8 lib\inc\stm8s_uart1.h:344(37+8) missing )
#error cpstm8 lib\inc\stm8s_uart1.h:344(72) missing ;
#error cpstm8 lib\inc\stm8s_uart1.h:347(43) old style argument declaration
#error cpstm8 lib\inc\stm8s_uart1.h:349(42) old style argument declaration
#error cpstm8 lib\inc\stm8s_uart1.h:350(48) old style argument declaration
#error cpstm8 lib\inc\stm8s_uart1.h:351(52) old style argument declaration
#error cpstm8 lib\inc\stm8s_uart1.h:353(53) old style argument declaration
ite626x\io.c:
The command: "cxstm8 +mods0 +debug -pxp +compact +split -pp -l -iite626x -iite626x_v206 -imicro -iuser -ilib\inc -iite626x -iite626x -i"C:\Program Files\COSMIC\CXSTM8\Hstm8" -i"C:\Program Files\COSMIC\CXSTM8\Lib" -clDebug\ -coDebug\ ite626x\io.c" has failed, the returned value is: 1
exit code=1.
edp3.elf - 103 error(s), 0 warning(s)
|
最佳答案
查看完整内容[请看2#楼]
搞定了 把其中一个跟底层有关系文件分成两个,一个跟底层没啥关系,另一个就是涉及到单片机调用的。这样分开来就没这个问题了。估计是之前那个文件太长了,有些头文件的包含或者函数的顺序问题导致的,不过也尝试调整头文件的位置,错误会增多。
|