加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

IAR 常见错误

(2013-07-21 08:55:53)
分类: ZigBee

**function"XXXX"has no prototype
     在“.h ”文件里先把函数声明一下

 

**设置IAR软件Tab键缩进字符个数
   方法:Tools-Options-Editor-Tab Size,按习惯改后面数字.

 

**Error[e46]: Undefined external "LcdInit" referred in main( E:\MSP430
   \UDP\Debug\Obj\main.r43 )
   原因:工程中有多个.c文件,但不在工程中.
   解决:把.c文件加到工程里。

 

**Error[e27]: Entry "ReadingData" in module DS1302 ( E:\MSP430
   \Module\DS1302\Debug\Obj\DS1302.r43 ) redefined in module main
   原因:我把定义的数组unsigned char ReadingData[7];放在.h的文件中编译出现这样的错误
   解决:把unsigned char ReadingData[7];放在.c文件中

 

**An error has occured.See the log file C\...\workspace_v5_1\.metadata\.log
   解决:安装目录CCS5.1\CCS5.1.1.00031_win32\baserepo下的vcredist_x86_2005

 

**Error[Pe127]: expected a statement E:\MSP430\Module\TFT\SD.c 95
   Error[Pe018]: expected a ")" E:\MSP430\Module\TFT\SD.c 132
   解决:仔细检查下程序,看有没有一些语法上的错误。比如:
          #define SPI_DO_H  P1OUT |= BIT0;  //P1.0
        #define SPI_DO_L  P1OUT &= ~BIT0;
          多加的“;”就会使程序出现上述错误。

 

**The target setup(MSP430G2xx3) does not match the actual target tpe
   (MSP430G2xx2)
   解决:检查目标板上芯片型与CCS工程设置芯片型是否一致。大部分是匹配不一致的问题。

 

**Warning[Pa093]:implicit conversion from floating point to integer。
   解决:使用强制转换语句,把float数据转化成integer类型数据。这样防止数据出错。

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有