打印
[开发工具]

IAR 启动代码 这个警告如何消除?

[复制链接]
8468|4
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
crazybee|  楼主 | 2014-9-1 16:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Warning[25]: Label 'Reset_Handler' is defined pubweak in a section implicitly declared root

按以下的方法,  添加了NOROOT(2) ,变语法错误了,这是啥原因,V7.20  IAR,,, k别外 NOROOT(2)  这里的数字 2,是指该段内的标号个数吗?

IAR ASM手册也只是简单介绍一下;


After upgrading to EWARM 7.10.1 the Warning[25] is issued during assembly of a file that assembled without warning on earlier version of EWARM.

Background

The assembler (iasmarm) is (from EWARM 7.10.1) issuing Warning[25] for a deprecated assembler construction.

The deprecated assembler source construction looks like this:

       PUBWEAK NMI_Handler
       SECTION .text:CODE:REORDER(1)
   NMI_Handler
Solution

To avoid the warning, add ":NOROOT" to the "SECTION" statement:

       PUBWEAK NMI_Handler
       SECTION .text:CODE:REORDER:NOROOT(1)
   NMI_Handler
沙发
Rain_King| | 2014-9-1 16:56 | 只看该作者
这个警告我以前也遇到过,怎么解决的,给搞忘了....

使用特权

评论回复
板凳
crazybee|  楼主 | 2014-9-2 10:40 | 只看该作者
找到原因了,Warning[22]: Set section alignment the same (2) ;一个 (2)说明就可以了;

使用特权

评论回复
地板
yaoyyie2003| | 2014-9-22 14:46 | 只看该作者
IAR真是坑啊

使用特权

评论回复
5
HORSE7812| | 2014-11-17 17:11 | 只看该作者

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:MSN: ihuangwh@foxmail.com

149

主题

800

帖子

5

粉丝