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

查看: 4066|回复: 2

IAR编译后提示库文件里面出错.

[复制链接]

17

主题

54

回帖

0

蝴蝶豆

新手上路

最后登录
1970-1-1
发表于 2012-3-22 11:07:03 | 显示全部楼层 |阅读模式
请问,编译后出现下面错误是怎么回事.我看头文件里面都已经定义了啊
Building configuration: LCD - Release
Updating build tree...
stm8s_adc2.c 
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 50
Error[Pe020]: identifier "ADC2_CSR_RESET_VALUE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 50
Error[Pe020]: identifier "ADC2_CR1_RESET_VALUE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 51
Error[Pe020]: identifier "ADC2_CR2_RESET_VALUE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 52
Error[Pe020]: identifier "ADC2_TDRH_RESET_VALUE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 53
Error[Pe020]: identifier "ADC2_TDRL_RESET_VALUE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 54
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 108
Error[Pe020]: identifier "ADC2_CR1_ADON" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 108
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 126
Error[Pe020]: identifier "ADC2_CR1_ADON" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 126
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 130
Error[Pe020]: identifier "ADC2_CR1_ADON" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 130
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 149
Error[Pe020]: identifier "ADC2_CSR_EOCIE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 149
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 154
Error[Pe020]: identifier "ADC2_CSR_EOCIE" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 154
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 172
Error[Pe020]: identifier "ADC2_CR1_SPSEL" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 172
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 198
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 203
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 211
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 215
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 222
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 226
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 251
Error[Pe020]: identifier "ADC2_CR2_ALIGN" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 251
Error[Pe020]: identifier "ADC2_CR1_CONT" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 258
Error[Pe020]: identifier "ADC2_CR1_CONT" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 263
Error[Pe020]: identifier "ADC2_CSR_CH" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 267
Error[Pe020]: identifier "ADC2" is undefined C:\Documents and Settings\zjq\桌面\LCD\src\stm8s_adc2.c 292
......
Error while running C/C++ Compiler
 
Total number of errors: 333
Total number of warnings: 0
 
回复

使用道具 举报

134

主题

4489

回帖

239

蝴蝶豆

版主

最后登录
2020-12-9
发表于 2012-3-22 15:32:24 | 显示全部楼层

RE:IAR编译后提示库文件里面出错.

stm8xxx.H,你是不是没有添加?
回复 支持 反对

使用道具 举报

17

主题

54

回帖

0

蝴蝶豆

新手上路

最后登录
1970-1-1
 楼主| 发表于 2012-3-22 15:43:16 | 显示全部楼层

RE:IAR编译后提示库文件里面出错.

谢谢!问题解决了.是由于这个芯片没有这些外设.本人是新手所以提这种弱智问题!不好意思啊!
回复 支持 反对

使用道具 举报

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版