Giter VIP home page Giter VIP logo

Comments (8)

vostrenkov avatar vostrenkov commented on May 24, 2024 1

This is not Cube IDE project. Cube MX was only used for hardware configuration. Use Keil uVision instead or build with makefile

from freejoy.

vostrenkov avatar vostrenkov commented on May 24, 2024 1

What do you have in log window after compilation?

from freejoy.

vostrenkov avatar vostrenkov commented on May 24, 2024 1

Do you have the code compiled successfully?

from freejoy.

vostrenkov avatar vostrenkov commented on May 24, 2024 1

I just made a clean clone of the repo and everything is ok.

Please delete your project folder and make a new clone of the repository. Then go to YourRepoFolder/MDK-ARM folder and open FreeJoy.uvprojx file in Keil uVision.
When the project is loaded press F7 or "Build" button. After that project should be built successfully and available to be loaded to the chip

from freejoy.

tiagodsnts avatar tiagodsnts commented on May 24, 2024

Thanks. Now i install Keil uVision 5.29. But, when i erase chip and select download show "Error: Flash download failed - Could not load file "FreeJoy\FreJoy.axf""

from freejoy.

tiagodsnts avatar tiagodsnts commented on May 24, 2024

Flash > Erase
Flash > Download

Full Chip Erase Done.
Flash Erase finished 16:45:53
Load "FreeJoy\FreeJoy.axf"
_____^
*** error 56: cannot open file
Error: Flash Download failed - Could not load file 'FreeJoy\FreeJoy.axf'
Flash Load finished at 16:46:24

from freejoy.

tiagodsnts avatar tiagodsnts commented on May 24, 2024

No.
Debug > Start stop debug session

Load "FreeJoy\FreeJoy.axf"
_____^
*** error 56: cannot open file
Error: Flash Download failed - Could not load file 'FreeJoy\FreeJoy.axf'
Flash Load finished at 17:08:24

Projetc > Build Target

Build started: Project: FreeJoy
*** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin'
Build target 'FreeJoy'
compiling config.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /*!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\config.c: 3 warnings, 30 errors
compiling periphery.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\periphery.c: 3 warnings, 30 errors
compiling stm32f10x_it.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
../Src/stm32f10x_it.c: 3 warnings, 30 errors
compiling sensors.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\sensors.c: 3 warnings, 30 errors
compiling encoders.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\encoders.c: 3 warnings, 30 errors
compiling shift_registers.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\shift_registers.c: 3 warnings, 30 errors
compiling buttons.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\buttons.c: 3 warnings, 30 errors
compiling leds.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\leds.c: 3 warnings, 30 errors
compiling analog.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\analog.c: 3 warnings, 30 errors
compiling axis_to_buttons.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\axis_to_buttons.c: 3 warnings, 30 errors
compiling usb_endp.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt /
..\Src\usb_endp.c: 3 warnings, 30 errors
compiling usb_hw.c...
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(51): warning: #47-D: incompatible redefinition of macro "__MPU_PRESENT" (declared at line 158 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __MPU_PRESENT 0U /
!< Other STM32 devices does not provide an MPU /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(52): warning: #47-D: incompatible redefinition of macro "__NVIC_PRIO_BITS" (declared at line 160 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __NVIC_PRIO_BITS 4U /
!< STM32 uses 4 Bits for the Priority Levels /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(53): warning: #47-D: incompatible redefinition of macro "__Vendor_SysTickConfig" (declared at line 161 of "..\Drivers\CMSIS\CM3\DeviceSupport\ST\STM32F10x\stm32f10x.h")
#define __Vendor_SysTickConfig 0U /
!< Set to 1 if different SysTick Config is used /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(72): error: #101: "NonMaskableInt_IRQn" has already been declared in the current scope
NonMaskableInt_IRQn = -14, /
!< 2 Non Maskable Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(74): error: #101: "MemoryManagement_IRQn" has already been declared in the current scope
MemoryManagement_IRQn = -12, /
!< 4 Cortex-M3 Memory Management Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(75): error: #101: "BusFault_IRQn" has already been declared in the current scope
BusFault_IRQn = -11, /
!< 5 Cortex-M3 Bus Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(76): error: #101: "UsageFault_IRQn" has already been declared in the current scope
UsageFault_IRQn = -10, /
!< 6 Cortex-M3 Usage Fault Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(77): error: #101: "SVCall_IRQn" has already been declared in the current scope
SVCall_IRQn = -5, /
!< 11 Cortex-M3 SV Call Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(78): error: #101: "DebugMonitor_IRQn" has already been declared in the current scope
DebugMonitor_IRQn = -4, /
!< 12 Cortex-M3 Debug Monitor Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(79): error: #101: "PendSV_IRQn" has already been declared in the current scope
PendSV_IRQn = -2, /
!< 14 Cortex-M3 Pend SV Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(80): error: #101: "SysTick_IRQn" has already been declared in the current scope
SysTick_IRQn = -1, /
!< 15 Cortex-M3 System Tick Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(83): error: #101: "WWDG_IRQn" has already been declared in the current scope
WWDG_IRQn = 0, /
!< Window WatchDog Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(84): error: #101: "PVD_IRQn" has already been declared in the current scope
PVD_IRQn = 1, /
!< PVD through EXTI Line detection Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(85): error: #101: "TAMPER_IRQn" has already been declared in the current scope
TAMPER_IRQn = 2, /
!< Tamper Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(86): error: #101: "RTC_IRQn" has already been declared in the current scope
RTC_IRQn = 3, /
!< RTC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(87): error: #101: "FLASH_IRQn" has already been declared in the current scope
FLASH_IRQn = 4, /
!< FLASH global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(88): error: #101: "RCC_IRQn" has already been declared in the current scope
RCC_IRQn = 5, /
!< RCC global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(89): error: #101: "EXTI0_IRQn" has already been declared in the current scope
EXTI0_IRQn = 6, /
!< EXTI Line0 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): error: #101: "EXTI1_IRQn" has already been declared in the current scope
EXTI1_IRQn = 7, /
!< EXTI Line1 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(91): error: #101: "EXTI2_IRQn" has already been declared in the current scope
EXTI2_IRQn = 8, /
!< EXTI Line2 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(92): error: #101: "EXTI3_IRQn" has already been declared in the current scope
EXTI3_IRQn = 9, /
!< EXTI Line3 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(93): error: #101: "EXTI4_IRQn" has already been declared in the current scope
EXTI4_IRQn = 10, /
!< EXTI Line4 Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(94): error: #101: "DMA1_Channel1_IRQn" has already been declared in the current scope
DMA1_Channel1_IRQn = 11, /
!< DMA1 Channel 1 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(95): error: #101: "DMA1_Channel2_IRQn" has already been declared in the current scope
DMA1_Channel2_IRQn = 12, /
!< DMA1 Channel 2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(96): error: #101: "DMA1_Channel3_IRQn" has already been declared in the current scope
DMA1_Channel3_IRQn = 13, /
!< DMA1 Channel 3 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(97): error: #101: "DMA1_Channel4_IRQn" has already been declared in the current scope
DMA1_Channel4_IRQn = 14, /
!< DMA1 Channel 4 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(98): error: #101: "DMA1_Channel5_IRQn" has already been declared in the current scope
DMA1_Channel5_IRQn = 15, /
!< DMA1 Channel 5 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(99): error: #101: "DMA1_Channel6_IRQn" has already been declared in the current scope
DMA1_Channel6_IRQn = 16, /
!< DMA1 Channel 6 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(100): error: #101: "DMA1_Channel7_IRQn" has already been declared in the current scope
DMA1_Channel7_IRQn = 17, /
!< DMA1 Channel 7 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(101): error: #101: "ADC1_2_IRQn" has already been declared in the current scope
ADC1_2_IRQn = 18, /
!< ADC1 and ADC2 global Interrupt /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(102): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(103): 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 /
../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(104): error: #101: "CAN1_RX1_IRQn" has already been declared in the current scope
CAN1_RX1_IRQn = 21, /
!< CAN1 RX1 Interrupt */
..\Src\usb_hw.c: 3 warnings, 30 errors
"FreeJoy\FreeJoy.axf" - 360 Error(s), 36 Warning(s).
Target not created.
Build Time Elapsed: 00:00:04

from freejoy.

tiagodsnts avatar tiagodsnts commented on May 24, 2024

It worked a lot
Thanks for your help
I'm learning to play with the bluepill board

from freejoy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.