mdk报错invalid redeclaration of type name "s32"

 将mdk固件库升级成V3.5.0,编译至XX.c时报错
\stm32f10x.h(487): error:  #256: invalid redeclaration of type name "s32" (declared at line 23 of "d:\Keil\ARM\INC\ST\STM32F10x\stm32f10x_type.h")
观察同名XX.h,其中有#include "stm32f10x_type.h"
将其改为#include "stm32f10x.h"
编译通过

 

____________________

stm32f10x.h默认在3.5版的Libraries\CMSIS\CM3\DeviceSupport\ST\STM32F10x下

你可能感兴趣的:(stm32)