飞思卡尔KL系列使用iar时的警告解决
时间:10-02
整理:3721RD
点击:
IAR7.3一打开就会有很多警告。
一、startup_MKL25Z4_iar.s 文件警告解决
类似警告:
需要
改为
二、警告:
文件最后一行(好像是注释********/后)有空格,删除。
三、
警告:Warning[Pe301]: typedef name hasalready been declared (with same type) E:\KL26Z\YL-K26Z_demo_IAR\CMSIS\arm_cm0.h72
arm_cm0.h 72与include.h中都定义了数据类型。
四、
警告:Warning[Pe177]: variable"uartPtr" was declared but never referenced E:\KL26Z\YL-K26Z_demo_IAR\Examples\GPIO\Demo_GPIO\Source\Drv\uart\MKL_uart.c606
有个宏定义没有打开,uartPtr未使用。
一、startup_MKL25Z4_iar.s 文件警告解决
类似警告:
- Warning[25]abel 'PendSV_Handler' is defined pubweak in a section implicitly declared rootE:\KL26Z\YL-K26Z_demo_IAR\Common\startup_MKL25Z4_iar.s 145
需要
- SECTION .text:CODE:REORDER(1)
改为
- SECTION .text:CODE:NOROOT:REORDER(1)
二、警告:
- Warning[Pa050]: non-native end ofline sequence detected (this diagnostic is only issued once)
文件最后一行(好像是注释********/后)有空格,删除。
三、
警告:Warning[Pe301]: typedef name hasalready been declared (with same type) E:\KL26Z\YL-K26Z_demo_IAR\CMSIS\arm_cm0.h72
arm_cm0.h 72与include.h中都定义了数据类型。
四、
警告:Warning[Pe177]: variable"uartPtr" was declared but never referenced E:\KL26Z\YL-K26Z_demo_IAR\Examples\GPIO\Demo_GPIO\Source\Drv\uart\MKL_uart.c606
有个宏定义没有打开,uartPtr未使用。
原来如此~