本帖最后由 jinyi7016 于 2015-5-24 11:22 编辑
之前的一个求助贴https://www.nxpic.org.cn/modul ... 8&page=1#pid2118540
不知道光盘里的iar工程是什么版本,我的是7.3的,一打开就会有很多警告。
一、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未使用,依个人情况而定。
|