ARM升级到v6.6之后CMSIS报错

2019-07-20 08:23发布

最近升级了MDK到5.23,为了支持C++11编译器选择为C++11,可是大量的错误出现了,折腾了好几天,求大神解答啊!!!!!!跪谢了


../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_crc.c(29): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incstm32f4xx_crc.h(38): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling stm32f4xx_crc.c...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_gpio.c(84): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incstm32f4xx_gpio.h(38): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling stm32f4xx_gpio.c...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c(59): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incstm32f4xx_rcc.h(37): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling stm32f4xx_rcc.c...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_syscfg.c(50): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incstm32f4xx_syscfg.h(38): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling stm32f4xx_syscfg.c...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/misc.c(76): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incmisc.h(38): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling misc.c...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_tim.c(119): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incstm32f4xx_tim.h(38): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/inc/stm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling stm32f4xx_tim.c...
../User/system_stm32f4xx.c(215): warning: In file included from...
../STM32F4xx_DSP_StdPeriph_Lib_V1.8.0/Libraries/STM32F4xx_StdPeriph_Driver/incstm32f4xx.h(149): error: 'stm32f407xx.h' file not found
  #include "stm32f407xx.h"
           ^
1 error generated.
compiling system_stm32f4xx.c...
".Objproject.axf" - 13 Error(s), 0 Warning(s).

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。