在使用6版的编译成功的项目,现在使用7.1编译,就会出警告,
它来自:
startup_stm32f10x_hd.s
文件,内容如:
Warning[25]: Label 'Reset_Handler' is defined pubweak in a section implicitly declared root
等,产生的map文件中:
.intvec ro code 0x08000000 0x130 startup_stm32f10x_hd.o [1]
- 0x08000130 0x130
解决方法:
Problem
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
本文介绍使用IAR 7.10.1编译STM32项目时遇到的Warning[25]问题及其解决办法。此警告源于过时的汇编构造,通过在SECTION声明中添加NOROOT可以消除警告。
2737

被折叠的 条评论
为什么被折叠?



