使用新版本的IAR编译工程报错:
Error[Pe147]: declaration is incompatible with “__nounwind __interwork __softfp unsigned int __iar_builtin_REV16(unsigned int)” (declared at line 199 of "D:\ G:\STM32F1\project\Libraries\CMSIS\CM3\CoreSupport\core_cm3.h 1124
解决方法:
1、把原有core_cm3.h头文件包含搜索路径去掉。
$PROJ_DIR$\..\Libraries\CMSIS\CM3\CoreSupport
2、Project options > General Options > Library Configuration 中勾选 Use CMSIS