打印

解决IAR6.3编译stm32

[复制链接]
4453|6
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
梅花望青竹|  楼主 | 2012-6-8 21:02 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __get_PSP(void)"
(declared at line 52 of "xx:\IAR Systems6\Embedded Workbench 6.0\arm\inc\c\intrinsics.h")
DM00039768.pdf (97.01 KB)
沙发
李富贵| | 2012-6-8 21:33 | 只看该作者
去arm官方网站下载cmsis2.1,然后用core_cm3.h core_cmFunc.h core_cmInstr.h这三个文件覆盖掉st固件库里面的core_cm3.h即可。

ST官方出的这个解决方案的问题是如果一个项目是兼容iar、mdk、gcc的话,他的方案会使iar项目使用cmsis2.1,而mdk和gcc项目仍然使用st固件库3.x版本里面的cmsis1.3,最终会导致不可预知的后果。还是我的解决方案最合理。

使用特权

评论回复
板凳
gudufeng007| | 2013-3-12 22:33 | 只看该作者
用core_cm3.h core_cmFunc.h core_cmInstr.h这三个文件覆盖掉st固件库里面的core_cm3.h,可是还是有错误,core_cm3.c要加进工程吗,还有要勾选IAR软件的CMSIS吗

使用特权

评论回复
地板
gudufeng007| | 2013-3-13 09:53 | 只看该作者
如果我没勾选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"

使用特权

评论回复
5
gudufeng007| | 2013-3-13 10:07 | 只看该作者
请问有没有cmsis2.1,能提供一个吗

使用特权

评论回复
6
dingwave_2000| | 2013-5-4 22:34 | 只看该作者
能不能提供一下这三个文件,谢谢了,急需!!!

使用特权

评论回复
7
1021256354| | 2013-8-27 13:37 | 只看该作者
能不能提供一下这三个文件,谢谢了,急需!!!

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

98

主题

2589

帖子

7

粉丝