IAR编译STM32报错

[复制链接]
5709|5
 楼主| gudufeng007 发表于 2013-3-14 23:50 | 显示全部楼层 |阅读模式
没勾选IAR软件的CMSIS,同时工程包含core_cm3.c,我用core_cm3.h core_cmFunc.h core_cmInstr.h这三个文件覆盖掉st固件库里面的core_cm3.h,没勾选Multi-file Compilation就没错,勾选还是有错误
Error[Pe1061]: declaration of function "__nounwind __set_MSP" is incompatible with a declaration in another translation unit                   C:\Program Files\IAR Systems\Embedded Workbench 6.4\arm\inc\c\intrinsics.h
            the other declaration is at line 308 of "F:\study\IAR_STM32\STM32_LED\Libraries\CMSIS\CM3\CoreSupport\core_cm3.c"
 楼主| gudufeng007 发表于 2013-3-14 23:51 | 显示全部楼层
求指点,用IAR6.4
qiujiahongde 发表于 2013-3-15 08:39 | 显示全部楼层
两个文件定义矛盾!
JasonWangFAE 发表于 2013-3-15 08:51 | 显示全部楼层
勾选-->you need to delete core_cm3.h and core_cm3.c files in your projects.
 楼主| gudufeng007 发表于 2013-3-16 17:24 | 显示全部楼层
不要core_cm3.h and core_cm3.c肯定是不会错的,可是应该怎么做到IAR 和MDK工程不用改动呢,直接加载文件就可以通用呢
hawksabre 发表于 2013-3-17 10:41 | 显示全部楼层
实在不行  卸载重转一下  看看行不行  个人觉得编译器设置问题   应该问题不是很大  呵呵
您需要登录后才可以回帖 登录 | 注册

本版积分规则

6

主题

35

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部