项目场景:
STM32F103C8T6 KEIL5软件不能编译,不能下载程序, compiling system_stm32f10x.c…
…\CMSIS\stm32f10x.h(298): error: #67: expected a “}”
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
Error: Flash Download failed - Could not load file ‘D:\MyTest\Project\output\Projiect.axf’
问题描述
STM32F103C8T6 KEIL5软件不能编译,不能下载程序, compiling system_stm32f10x.c…
…\CMSIS\stm32f10x.h(298): error: #67: expected a “}”
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
Error: Flash Download failed - Could not load file ‘D:\MyTest\Project\output\Projiect.axf’
Rebuild started: Project: Projiect
*** Using Compiler 'V5.06 update 7 (build 960)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Rebuild target 'Target 1'
assembling startup_stm32f10x_hd.s...
compiling stm32f10x_usart.c...
..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\CMSIS\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\Libraries\src\stm32f10x_usart.c: 1 warning, 1 error
compiling stm32f10x_rcc.c...
..\CMSIS\stm32f10x.h(298): error: #67: expected a "}"
ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */
..\CMSIS\stm32f10x.h(472): warning: #12-D: parsing restarts here after previous syntax error
} IRQn_Type;
..\Libraries\src\stm32f10x_rcc.c: 1 warning, 1 error
compiling misc.