问题1:出现Warning[25]: Label'Reset_Handler' is defined pubweak……
解决:
7.1版本之前,section默认是noroot,但现在是root。所以可以将SECTION .text:CODE:REORDER(1)改成SECTION .text:CODE:REORDER:NOROOT(1)或SECTION .text:CODE:REORDER:ROOT(1)。注意 NOROOT和 ROOT 的区别,NOROOT表示如果符号没有被关联的时候是被优化掉的,如果想不被优化则使用ROOT。
相应的SECTION .text:CODE:REORDER(2) 也改为SECTION .text:CODE:REORDER:NOROOT(2)或SECTION .text:CODE:REORDER:ROOT(2)
问题2:Error[Pe147]: declaration is incompatible with "__nounwind __interwork __softfp unsigned long __ge
解决:1,把老的core_cm3.h去掉,删除,或者改成core_cm3.h.old。
2,Project -> Options -> General Options -> Library Configuration -> Use CMSIS,右下角的选项中选择 use CMSIS