Error[Pe147]: declaration is incompatible with "__interwork __softfp unsigned long __get_PSP(void)"
是因为IAR从6.2开始引入了CMSIS 2.x的库,而STM32的固件库3.x版本依然使用CMSIS 1.x的缘故。 是由于用IAR6.5打开IAR5.5生成的工程。
1,把老的core_cm3.h去掉,删除,或者改成core_cm3.h.old。 2,Project -> Options -> General Options -> Library Configuration -> Use CMSIS,右下角的选项中选择 use CMSIS