keil5 开发STM32的 IRQn_Type error

本文详细解析了使用keil5环境开发STM32过程中遇到的IRQn_Type error问题,并提供了两种解决方案:一是更换为高密度STM32芯片;二是选用与设备相匹配的启动文件。通过正确配置,最终实现编译无错误、无警告的目标。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

keil5环境开发STM32keil4开发stcC51完全不同,记下一个坑

 

这个IRQn_Type  error原因其实很简单,就是选择的启动文件(startupstartuo_stm32f10x_hd.s是用于高密度的,而调试的device我选择的是STM32F103C4,不匹配。

解决办法:

1)device,选择高密度的芯片,如STM32F103VE

2)更改启动(startup)文件,选择匹配的启动文件,如startup_stm32f10x_ld.s

 

最后显示no error,no warning 表明编译成功

Build started: Project: xunji1 *** Using Compiler 'V5.06 update 5 (build 528)', folder: 'D:\Keil5 C51\ARM\ARMCC\Bin' Build target 'xunji1' compiling freertos.c... D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(165): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 50 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __MPU_PRESENT 0 /*!< Other STM32 devices does not provide an MPU */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(167): warning: #47-D: incompatible redefinition of macro "__CM3_REV" (declared at line 49 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __CM3_REV 0x0200 /*!< Core Revision r2p0 */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(168): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 51 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __NVIC_PRIO_BITS 4 /*!< STM32 uses 4 Bits for the Priority Levels */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(169): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 52 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(178): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(179): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(180): error: #101: "BusFault_IRQn" has already been declared in the current scope BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(181): error: #101: "UsageFault_IRQn" has already been declared in the current scope UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(182): error: #101: "SVCall_IRQn" has already been declared in the current scope SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(183): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(184): error: #101: "PendSV_IRQn" has already been declared in the current scope PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(185): error: #101: "SysTick_IRQn" has already been declared in the current scope SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(188): error: #101: "WWDG_IRQn" has already been declared in the current scope WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(189): error: #101: "PVD_IRQn" has already been declared in the current scope PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(190): error: #101: "TAMPER_IRQn" has already been declared in the current scope TAMPER_IRQn = 2, /*!< Tamper Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(191): error: #101: "RTC_IRQn" has already been declared in the current scope RTC_IRQn = 3, /*!< RTC global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(192): error: #101: "FLASH_IRQn" has already been declared in the current scope FLASH_IRQn = 4, /*!< FLASH global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(193): error: #101: "RCC_IRQn" has already been declared in the current scope RCC_IRQn = 5, /*!< RCC global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(194): error: #101: "EXTI0_IRQn" has already been declared in the current scope EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(195): error: #101: "EXTI1_IRQn" has already been declared in the current scope EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(196): error: #101: "EXTI2_IRQn" has already been declared in the current scope EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(197): error: #101: "EXTI3_IRQn" has already been declared in the current scope EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(198): error: #101: "EXTI4_IRQn" has already been declared in the current scope EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(199): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(200): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(201): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(202): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(203): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(204): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(205): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(252): error: #101: "ADC1_2_IRQn" has already been declared in the current scope ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(253): error: #101: "USB_HP_CAN1_TX_IRQn" has already been declared in the current scope USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(254): error: #101: "USB_LP_CAN1_RX0_IRQn" has already been declared in the current scope USB_LP_CAN1_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN1 RX0 Interrupts */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(255): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ ../Core/Src/freertos.c: 4 warnings, 30 errors compiling main.c... D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(165): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 50 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __MPU_PRESENT 0 /*!< Other STM32 devices does not provide an MPU */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(167): warning: #47-D: incompatible redefinition of macro "__CM3_REV" (declared at line 49 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __CM3_REV 0x0200 /*!< Core Revision r2p0 */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(168): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 51 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __NVIC_PRIO_BITS 4 /*!< STM32 uses 4 Bits for the Priority Levels */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(169): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 52 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(178): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(179): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(180): error: #101: "BusFault_IRQn" has already been declared in the current scope BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(181): error: #101: "UsageFault_IRQn" has already been declared in the current scope UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(182): error: #101: "SVCall_IRQn" has already been declared in the current scope SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(183): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(184): error: #101: "PendSV_IRQn" has already been declared in the current scope PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(185): error: #101: "SysTick_IRQn" has already been declared in the current scope SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(188): error: #101: "WWDG_IRQn" has already been declared in the current scope WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(189): error: #101: "PVD_IRQn" has already been declared in the current scope PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(190): error: #101: "TAMPER_IRQn" has already been declared in the current scope TAMPER_IRQn = 2, /*!< Tamper Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(191): error: #101: "RTC_IRQn" has already been declared in the current scope RTC_IRQn = 3, /*!< RTC global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(192): error: #101: "FLASH_IRQn" has already been declared in the current scope FLASH_IRQn = 4, /*!< FLASH global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(193): error: #101: "RCC_IRQn" has already been declared in the current scope RCC_IRQn = 5, /*!< RCC global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(194): error: #101: "EXTI0_IRQn" has already been declared in the current scope EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(195): error: #101: "EXTI1_IRQn" has already been declared in the current scope EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(196): error: #101: "EXTI2_IRQn" has already been declared in the current scope EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(197): error: #101: "EXTI3_IRQn" has already been declared in the current scope EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(198): error: #101: "EXTI4_IRQn" has already been declared in the current scope EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(199): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(200): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(201): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(202): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(203): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(204): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(205): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(252): error: #101: "ADC1_2_IRQn" has already been declared in the current scope ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(253): error: #101: "USB_HP_CAN1_TX_IRQn" has already been declared in the current scope USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(254): error: #101: "USB_LP_CAN1_RX0_IRQn" has already been declared in the current scope USB_LP_CAN1_RX0_IRQn = 20, /*!< USB Device Low Priority or CAN1 RX0 Interrupts */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(255): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope CAN1_RX1_IRQn = 21, /*!< CAN1 RX1 Interrupt */ ../Core/Src/main.c: 4 warnings, 30 errors compiling ja370.c... ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h(84): error: #40: expected an identifier uint32_t ulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. ../Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_hal_tim.h(116): error: #40: expected an identifier uint32_t ulse; /*!< Specifies the pulse value to be loaded into the Capture Compare Register. D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(165): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 50 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __MPU_PRESENT 0 /*!< Other STM32 devices does not provide an MPU */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(167): warning: #47-D: incompatible redefinition of macro "__CM3_REV" (declared at line 49 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __CM3_REV 0x0200 /*!< Core Revision r2p0 */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(168): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 51 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __NVIC_PRIO_BITS 4 /*!< STM32 uses 4 Bits for the Priority Levels */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(169): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 52 of "../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h") #define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(178): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope NonMaskableInt_IRQn = -14, /*!< 2 Non Maskable Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(179): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope MemoryManagement_IRQn = -12, /*!< 4 Cortex-M3 Memory Management Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(180): error: #101: "BusFault_IRQn" has already been declared in the current scope BusFault_IRQn = -11, /*!< 5 Cortex-M3 Bus Fault Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(181): error: #101: "UsageFault_IRQn" has already been declared in the current scope UsageFault_IRQn = -10, /*!< 6 Cortex-M3 Usage Fault Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(182): error: #101: "SVCall_IRQn" has already been declared in the current scope SVCall_IRQn = -5, /*!< 11 Cortex-M3 SV Call Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(183): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope DebugMonitor_IRQn = -4, /*!< 12 Cortex-M3 Debug Monitor Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(184): error: #101: "PendSV_IRQn" has already been declared in the current scope PendSV_IRQn = -2, /*!< 14 Cortex-M3 Pend SV Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(185): error: #101: "SysTick_IRQn" has already been declared in the current scope SysTick_IRQn = -1, /*!< 15 Cortex-M3 System Tick Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(188): error: #101: "WWDG_IRQn" has already been declared in the current scope WWDG_IRQn = 0, /*!< Window WatchDog Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(189): error: #101: "PVD_IRQn" has already been declared in the current scope PVD_IRQn = 1, /*!< PVD through EXTI Line detection Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(190): error: #101: "TAMPER_IRQn" has already been declared in the current scope TAMPER_IRQn = 2, /*!< Tamper Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(191): error: #101: "RTC_IRQn" has already been declared in the current scope RTC_IRQn = 3, /*!< RTC global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(192): error: #101: "FLASH_IRQn" has already been declared in the current scope FLASH_IRQn = 4, /*!< FLASH global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(193): error: #101: "RCC_IRQn" has already been declared in the current scope RCC_IRQn = 5, /*!< RCC global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(194): error: #101: "EXTI0_IRQn" has already been declared in the current scope EXTI0_IRQn = 6, /*!< EXTI Line0 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(195): error: #101: "EXTI1_IRQn" has already been declared in the current scope EXTI1_IRQn = 7, /*!< EXTI Line1 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(196): error: #101: "EXTI2_IRQn" has already been declared in the current scope EXTI2_IRQn = 8, /*!< EXTI Line2 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(197): error: #101: "EXTI3_IRQn" has already been declared in the current scope EXTI3_IRQn = 9, /*!< EXTI Line3 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(198): error: #101: "EXTI4_IRQn" has already been declared in the current scope EXTI4_IRQn = 10, /*!< EXTI Line4 Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(199): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope DMA1_Channel1_IRQn = 11, /*!< DMA1 Channel 1 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(200): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope DMA1_Channel2_IRQn = 12, /*!< DMA1 Channel 2 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(201): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope DMA1_Channel3_IRQn = 13, /*!< DMA1 Channel 3 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(202): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope DMA1_Channel4_IRQn = 14, /*!< DMA1 Channel 4 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(203): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope DMA1_Channel5_IRQn = 15, /*!< DMA1 Channel 5 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(204): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope DMA1_Channel6_IRQn = 16, /*!< DMA1 Channel 6 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(205): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope DMA1_Channel7_IRQn = 17, /*!< DMA1 Channel 7 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(252): error: #101: "ADC1_2_IRQn" has already been declared in the current scope ADC1_2_IRQn = 18, /*!< ADC1 and ADC2 global Interrupt */ D:\Keil5 C51\ARM\PACK\Keil\STM32F1xx_DFP\2.4.1\Device\Include\stm32f10x.h(253): error: #101: "USB_HP_CAN1_TX_IRQn" has already been declared in the current scope USB_HP_CAN1_TX_IRQn = 19, /*!< USB Device High Priority or CAN1 TX Interrupts */ ..\Core\Src\ja370.c: 4 warnings, 30 errors "xunji1\xunji1.axf" - 90 Error(s), 12 Warning(s). Target not created. Build Time Elapsed: 00:00:02
06-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值