Chinaunix首页 | 论坛 | 博客
  • 博客访问: 565199
  • 博文数量: 127
  • 博客积分: 1169
  • 博客等级: 少尉
  • 技术积分: 1298
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-16 14:29
个人简介

空白

文章分类

全部博文(127)

分类: 嵌入式

2017-02-23 16:51:48

编译stm8s程序过程报如下错误:

Compiling stm8s_stdperiph_driver\src\stm8s_adc2.c...
cxstm8 +mods0 +debug -pxp -no -pp -l -istm8s_stdperiph_driver\inc -i"C:\Program Files (x86)\COSMIC\CXSTM8\Hstm8" -i"C:\Program Files (x86)\STMicroelectronics\st_toolset\include"  -clDebug\ -coDebug\ stm8s_stdperiph_driver\src\stm8s_adc2.c
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:50(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:51(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:52(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:53(10+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:54(10+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:50(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:54(17+21) ADC2_TDRL_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:53(17+21) ADC2_TDRH_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:52(17+20) ADC2_CR2_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:51(17+20) ADC2_CR1_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:50(17+20) ADC2_CSR_RESET_VALUE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:108(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:108(17+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:108(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:126(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:130(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:126(21+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:126(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:130(32+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:130(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:149(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:154(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:154(46) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:149(30+14) ADC2_CSR_EOCIE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:149(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:154(32+14) ADC2_CSR_EOCIE undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:154(8+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:172(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:174(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:172(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:172(28+14) ADC2_CR1_SPSEL undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:198(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:199(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:199(35+3) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:203(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:204(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:211(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:215(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:215(88) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:222(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:226(18+4) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:198(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:203(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:211(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:215(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:222(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:226(12+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:251(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:253(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:258(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:263(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:263(45) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:267(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:269(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:251(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:267(28+11) ADC2_CSR_CH undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:251(28+14) ADC2_CR2_ALIGN undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:258(21+13) ADC2_CR1_CONT undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:263(32+13) ADC2_CR1_CONT undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:292(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:297(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:297(47) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:302(14+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:306(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:292(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:292(28+15) ADC2_CR2_EXTSEL undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:297(31+16) ADC2_CR2_EXTTRIG undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:302(32+16) ADC2_CR2_EXTTRIG undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:322(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:322(17+13) ADC2_CR1_ADON undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:322(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:338(15+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:341(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:343(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:350(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:352(22+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:338(9+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:338(21+14) ADC2_CR2_ALIGN undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:369(30+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:369(36+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:369(24+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:380(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:380(40) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:380(28+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:380(4+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:391(28+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:391(34+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:391(22+4) ADC2 undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:401(10+3) bad struct/union operand
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:401(40) const assignment
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:401(28+12) ADC2_CSR_EOC undefined
#error cpstm8 stm8s_stdperiph_driver\src\stm8s_adc2.c:401(4+4) ADC2 undefined
stm8s_stdperiph_driver\src\stm8s_adc2.c:
 The command: "cxstm8 +mods0 +debug -pxp -no -pp -l -istm8s_stdperiph_driver\inc -i"C:\Program Files (x86)\COSMIC\CXSTM8\Hstm8" -i"C:\Program Files (x86)\STMicroelectronics\st_toolset\include"  -clDebug\ -coDebug\ stm8s_stdperiph_driver\src\stm8s_adc2.c" has failed, the returned value is: 1
exit code=1.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

错误原因:

项目中添加的不相干源码文件太多,导致编译后目标文件太大,只保留项目中需要用的源码文件,再重新编译。

阅读(5896) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~