野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 326|回复: 6

新手求教,keil编译错误,无限循环编译

[复制链接]
回帖奖励 15 火花 回复本帖可获得 5 火花奖励! 每人限 1 次(中奖概率 60%)
发表于 2024-4-28 02:16:53 | 显示全部楼层 |阅读模式
请教各位大佬,今天刚刚拿到开发板,stm32f407zgt6的霸天虎V2的开发板,准备用Keil5烧录官方提供的视频教程里面第一节课的那个关于跑马灯的第一个例程,结果刚下载就显示编译错误,上网查了发现是ARM compiler version5的版本导致的,然后我按网上说法改到了ARM compiler version6 版本,然后准备编译,点了之后等我反应过来下方编译提示栏已经变成这个样子,想请教这是怎么回事?(最后是我手动中断的)

Build started: Project: BH-F407
*** Using Compiler 'V6.21', folder: 'C:\Keil_v5\ARM\ARMCLANG\Bin'
Build target '多彩流水灯'
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(416): error: unknown type name 'inline'
  416 | __attribute__((always_inline)) __STATIC_INLINE void __NOP(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(427): error: unknown type name 'inline'
  427 | __attribute__((always_inline)) __STATIC_INLINE void __WFI(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(438): error: unknown type name 'inline'
  438 | __attribute__((always_inline)) __STATIC_INLINE void __WFE(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(448): error: unknown type name 'inline'
  448 | __attribute__((always_inline)) __STATIC_INLINE void __SEV(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(460): error: unknown type name 'inline'
  460 | __attribute__((always_inline)) __STATIC_INLINE void __ISB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(471): error: unknown type name 'inline'
  471 | __attribute__((always_inline)) __STATIC_INLINE void __DSB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(482): error: unknown type name 'inline'
  482 | __attribute__((always_inline)) __STATIC_INLINE void __DMB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(495): error: unknown type name 'inline'
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(495): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(495): error: expected ';' after top level declarator
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(515): error: unknown type name 'inline'
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(515): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(515): error: expected ';' after top level declarator
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(531): error: unknown type name 'inline'
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(531): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(531): error: expected ';' after top level declarator
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                                                       ^
      |                                                       ;
../../Libraries/CMSIS/Include\core_cmInstr.h(552): error: unknown type name 'inline'
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(552): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(552): error: expected ';' after top level declarator
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(576): error: unknown type name 'inline'
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(576): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(576): error: expected ';' after top level declarator
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(617): error: unknown type name 'inline'
  617 | __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c(106): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_adc.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(617): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  617 | __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(617): error: expected ';' after top level declarator
  617 | __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
      |                                                       ^
      |                                                       ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
compiling stm32f4xx_adc.c...
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(416): error: unknown type name 'inline'
  416 | __attribute__((always_inline)) __STATIC_INLINE void __NOP(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(427): error: unknown type name 'inline'
  427 | __attribute__((always_inline)) __STATIC_INLINE void __WFI(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(438): error: unknown type name 'inline'
  438 | __attribute__((always_inline)) __STATIC_INLINE void __WFE(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(448): error: unknown type name 'inline'
  448 | __attribute__((always_inline)) __STATIC_INLINE void __SEV(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(460): error: unknown type name 'inline'
  460 | __attribute__((always_inline)) __STATIC_INLINE void __ISB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(471): error: unknown type name 'inline'
  471 | __attribute__((always_inline)) __STATIC_INLINE void __DSB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(482): error: unknown type name 'inline'
  482 | __attribute__((always_inline)) __STATIC_INLINE void __DMB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(495): error: unknown type name 'inline'
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(495): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(495): error: expected ';' after top level declarator
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(515): error: unknown type name 'inline'
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(515): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(515): error: expected ';' after top level declarator
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(531): error: unknown type name 'inline'
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(531): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(531): error: expected ';' after top level declarator
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                                                       ^
      |                                                       ;
../../Libraries/CMSIS/Include\core_cmInstr.h(552): error: unknown type name 'inline'
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(552): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(552): error: expected ';' after top level declarator
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(576): error: unknown type name 'inline'
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(576): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(576): error: expected ';' after top level declarator
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(617): error: unknown type name 'inline'
  617 | __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c(84): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_can.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(617): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  617 | __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(617): error: expected ';' after top level declarator
  617 | __attribute__((always_inline)) __STATIC_INLINE uint8_t __LDREXB(volatile uint8_t *addr)
      |                                                       ^
      |                                                       ;
fatal error: too many errors emitted, stopping now [-ferror-limit=]
6 warnings and 20 errors generated.
compiling stm32f4xx_can.c...
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(416): error: unknown type name 'inline'
  416 | __attribute__((always_inline)) __STATIC_INLINE void __NOP(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(427): error: unknown type name 'inline'
  427 | __attribute__((always_inline)) __STATIC_INLINE void __WFI(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(438): error: unknown type name 'inline'
  438 | __attribute__((always_inline)) __STATIC_INLINE void __WFE(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(448): error: unknown type name 'inline'
  448 | __attribute__((always_inline)) __STATIC_INLINE void __SEV(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(460): error: unknown type name 'inline'
  460 | __attribute__((always_inline)) __STATIC_INLINE void __ISB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(471): error: unknown type name 'inline'
  471 | __attribute__((always_inline)) __STATIC_INLINE void __DSB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(482): error: unknown type name 'inline'
  482 | __attribute__((always_inline)) __STATIC_INLINE void __DMB(void)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(495): error: unknown type name 'inline'
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(495): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(495): error: expected ';' after top level declarator
  495 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(515): error: unknown type name 'inline'
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(515): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(515): error: expected ';' after top level declarator
  515 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __REV16(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(531): error: unknown type name 'inline'
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(531): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(531): error: expected ';' after top level declarator
  531 | __attribute__((always_inline)) __STATIC_INLINE int32_t __REVSH(int32_t value)
      |                                                       ^
      |                                                       ;
../../Libraries/CMSIS/Include\core_cmInstr.h(552): error: unknown type name 'inline'
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(552): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(552): error: expected ';' after top level declarator
  552 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(576): error: unknown type name 'inline'
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                                ^
../../Libraries/CMSIS/Include\core_cm4.h(87): note: expanded from macro '__STATIC_INLINE'
   87 |   #define __STATIC_INLINE  static inline
      |                                   ^
../../Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c(48): warning: In file included from...
../../Libraries/STM32F4xx_StdPeriph_Driver/inc\stm32f4xx_cryp.h(38): warning: In file included from...
../../Libraries/CMSIS/Device/ST/STM32F4xx/Include\stm32f4xx.h(817): warning: In file included from...
../../Libraries/CMSIS/Include\core_cm4.h(188): warning: In file included from...
../../Libraries/CMSIS/Include\core_cmInstr.h(576): warning: 'always_inline' attribute only applies to functions and statements [-Wignored-attributes]
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                ^
../../Libraries/CMSIS/Include\core_cmInstr.h(576): error: expected ';' after top level declarator
  576 | __attribute__((always_inline)) __STATIC_INLINE uint32_t __RBIT(uint32_t value)
      |                                                        ^
      |                                                        ;
../../Libraries/CMSIS/Include\core_cmInstr.h(617): error: unknown type name 'inline'
compiling stm32f4xx_cryp_tdes.c...
compiling stm32f4xx_dma.c...
compiling stm32f4xx_cryp.c...
compiling stm32f4xx_exti.c...
compiling stm32f4xx_dcmi.c...
compiling stm32f4xx_dac.c...
compiling stm32f4xx_cec.c...
compiling stm32f4xx_crc.c...
compiling system_stm32f4xx.c...
compiling misc.c...
compiling stm32f4xx_dbgmcu.c...
compiling stm32f4xx_cryp_des.c...
compiling stm32f4xx_cryp_aes.c...
compiling stm32f4xx_flash.c...
compiling stm32f4xx_flash_ramfunc.c...
compiling stm32f4xx_fmpi2c.c...
Project build/rebuild aborted.
Build Time Elapsed:  00:00:03


回复

使用道具 举报

发表于 2024-4-28 09:21:18 | 显示全部楼层

回帖奖励 +5 火花

CMSIS的版本是多少,换成5.9.0或者之后的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-4-28 12:45:17 | 显示全部楼层
本帖最后由 风雨的眷顾 于 2024-4-28 12:54 编辑
JiangYoo 发表于 2024-4-28 09:21
CMSIS的版本是多少,换成5.9.0或者之后的。

应该是5.9.0的版本,查看过了。在路径C:\Keil_v5\ARM\PACK\.Download下有ARM.CMSIS.5.9.0,ARM.CMSIS-Driver.2.7.2,ARM.CMSIS-DSP.1.15.0,ARM.CMSIS-NN.4.1.0,Keil.ARM_Compiler.1.7.2,Keil.MDK-Middleware.7.16.0,Keil.MDK-Middleware_Graphics.1.3.0共计7个文件,
回复 支持 反对

使用道具 举报

发表于 2024-4-29 09:16:12 | 显示全部楼层
正点和野火都是调用早期的CMSIS文件,在工程下有,并不是你的目录下的文件。我用Complier Version 5都编译的好好的,你用6的话按照下面的图片进行更改:1.删除包含文件夹;2,3. 选择包含CMSIS CORE 野火论坛202404290910143319..png 野火论坛202404290912538350..png 野火论坛202404290913212651..png
回复 支持 反对

使用道具 举报

发表于 2024-4-29 09:18:52 | 显示全部楼层
如果你用CMSIS 6.0.0的话还要改msic.c文件 野火论坛202404290918489768..png
回复 支持 反对

使用道具 举报

发表于 2024-4-29 09:20:48 | 显示全部楼层
我觉得你用Complier Version 5报错是提示没有这个编译器吧,高版本的MDK下载后默认不带版本5的编译器
回复 支持 反对

使用道具 举报

 楼主| 发表于 2024-4-29 12:05:39 | 显示全部楼层
JiangYoo 发表于 2024-4-29 09:20
我觉得你用Complier Version 5报错是提示没有这个编译器吧,高版本的MDK下载后默认不带版本5的编译器 ...

问题解决了,大佬非常感谢,十万个感谢!刚刚开始学习就碰到这种问题查都查不到,真的太感谢了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-10 15:23 , Processed in 0.133851 second(s), 28 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表