STM32CubeMX V5.4.0 在 IAR EW V7.70中运行报错

报错如下:

Error[Pe018]: expected a ")" D:\STM32\ARPro\Drivers\CMSIS\Include\mpu_armv7.h 246 
Error[Pe020]: identifier "len" is undefined D:\STM32\ARPro\Drivers\CMSIS\Include\mpu_armv7.h 249 
Error[Pe020]: identifier "src" is undefined D:\STM32\ARPro\Drivers\CMSIS\Include\mpu_armv7.h 251 
Error[Pe140]: too many arguments in function call D:\STM32\ARPro\Drivers\CMSIS\Include\mpu_armv7.h 263 
Error[Pe140]: too many arguments in function call D:\STM32\ARPro\Drivers\CMSIS\Include\mpu_armv7.h 267 
Error while running C/C++ Compiler 

 

修改如下:

cmsis_iccarm.h:

#ifndef   __RESTRICT
  #define __RESTRICT            __restrict
#endif

改为:

你可能感兴趣的:(STM32)