资源描述:
《使用iar时遇到的一些error、waring》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、使用IAR时遇到的一些Error、Waringhttp://hi.baidu.com/sendoc/blog作为菜虫,在使用IAR的时候编写CC2430、、Z-Stack2006程序会遇到如下一些错误,当然随着学习的深入,我会持续更新。1Q:Error[e16]:SegmentXDATA_Z(size:0x19a1align:0)istoolongforsegmentdefinition.Atleast0xe4cmorebytesneeded.Theproblemoccurredwhileprocessingthesegmentplacementcommand"-Z(
2、XDATA)XDATA_N,XDATA_Z,XDATA_I=_XDATA_START-_XDATA_END",whereatthemomentofplacementtheavailablememoryrangeswere"XDATA:f1ff-fd53"Reservedrangesrelevanttothisplacement:XDATA:f000-f1feXSTACKXDATA:f1ff-fd53XDATA_NBIT:0-7BREGBIT:80-97SFR_ANBIT:a8-afSFR_ANBIT:b8-c7SFR_ANBIT:d8-dfSFR_ANBIT:e8-e
3、fSFR_ANA:其实这个问题并不是你的程序本身有问题,主要是因为你编写的程序太大了,超出了芯片本身的定义。今天在群里学习了一招,就是将数组定义到code里,我们看一下例子。我们定义一个5100个元素的数组,有以下两种方法:mermaid提出的方法是:typedefunsignedcharconst__codeINT8U;5.1-9,,services,andmakethecitymoreattractive,strengtheningpublictransportinvestment,establishedasthebackboneoftheurbanrailtra
4、nsitmulti-level,multi-functionalpublictransportsystem,thusprotectingtheregionalpositionandachieveexternINT8Ushuzi[5100];文晶提出的方法是INT8Ucodeshuzi[5100];这两种方法其实效果是一致的,定义完数组之后,调用的部分就是需要用指针来调用数组里面的数值了。2Q:烧写程序时无法跳入断点为什么我每次烧程序都出现:Thestackplug-infailedtosetabreakpointon"main".TheStackwindowwilln
5、otbeabletodisplaystackcontents.(YoucanchangethissettingintheTool>Optionsdialogbox.)的警告。但是程序能烧进去,只是不能调试。A:确认设置没有问题(和好用的工程相比)这是设置不对,请找下面顺序修改:iar->options->linker->output->format;选择Debuginformationforc-SPY选项3Q:/***********************************************************************/错误提示:Fa
6、talError[Cp001]:CopyprotecTIoncheck,Novalidlicensefoundforthisproduct[20]A:可以将IAR全部安装上,但是在编译文件时却会报这个错,原因是安装的时候没有把注册机的0x.....字串的小写字母改为大写字母。/***********************************************************************/45.1-9,,services,andmakethecitymoreattractive,strengtheningpublictransportin
7、vestment,establishedasthebackboneoftheurbanrailtransitmulti-level,multi-functionalpublictransportsystem,thusprotectingtheregionalpositionandachieveQ:“Error[e16]:SegmentCSTACK(size:0x50align:0x1)istoolongforsegmentdefinition.Atleast0x50morebytesneeded.Theproblemoccurredwhileproc