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

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

[复制链接]
z18497 提问时间:2012-3-22 11:07 /
请问,编译后出现下面错误是怎么回事.我看头文件里面都已经定义了啊
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
 
收藏 评论2 发布时间:2012-3-22 11:07

举报

2个回答
废鱼 回答时间:2012-3-22 15:32:24

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

stm8xxx.H,你是不是没有添加?
z18497 回答时间:2012-3-22 15:43:16

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

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

所属标签

相似问题

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