你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

STVD编译的奇怪错误

[复制链接]
aleelove 提问时间:2016-7-14 10:46 /
编译错误提示如下,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 发布时间:2016-7-14 10:46

举报

2个回答
aleelove 回答时间:2016-7-14 10:54:56
错误全部都跟stm8s.h里面的typedef enum {DISABLE = 0, ENABLE = !DISABLE} FunctionalState;有关系
void UART1_ReceiverWakeUpCmd(FunctionalState NewState);
void UART1_LINCmd(FunctionalState NewState);
void UART1_SmartCardCmd(FunctionalState NewState);
void UART1_SmartCardNACKCmd(FunctionalState NewState);
void UART1_Cmd(FunctionalState NewState);
void TIM4_ARRPreloadConfig(FunctionalState NewState);
void TIM4_Cmd(FunctionalState NewState);
void TIM2_ARRPreloadConfig(FunctionalState NewState);
void TIM2_CCPreloadControl(FunctionalState NewState);
void TIM2_OC1PreloadConfig(FunctionalState NewState);
void TIM2_OC2PreloadConfig(FunctionalState NewState);
void TIM2_OC3PreloadConfig(FunctionalState NewState);
zcl201207 回答时间:2016-7-14 21:19:13
你应该把你的工程打包发出来让大家帮分析。。。

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32Cube扩展软件包
意法半导体边缘AI套件
ST - 理想汽车豪华SUV案例
ST意法半导体智能家居案例
STM32 ARM Cortex 32位微控制器
关注我们
st-img 微信公众号
st-img 手机版