cancel
Showing results for 
Search instead for 
Did you mean: 

Compliance error after adding and removing third party library

IMaji
Associate II

I added a HDC1080 temperature sensor library to the project. After removed it.

But I got 30 errors from stm32f103xb.h

No idea what to do. Can you please help me?

Error:

../Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h(90): 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(92): 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(93): 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(94): 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(95): 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(96): 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(97): 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(98): 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(101): 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(102): 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(103): 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(104): 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(105): 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(106): 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(107): 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(108): 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(109): 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(110): 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(111): 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(112): 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(113): 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(114): 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(115): 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(116): 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(117): 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(118): 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(119): 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(120): 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(121): 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(122): error:  #101: "CAN1_RX1_IRQn" has already been declared in the current scope
    CAN1_RX1_IRQn               = 21,     /*!< CAN1 RX1 Interrupt                                   */
..\Src\hdc1080.c: 3 warnings, 30 errors
compiling stm32f1xx_it.c...
"ROOM_LIGHT\ROOM_LIGHT.axf" - 30 Error(s), 3 Warning(s).

1 REPLY 1

Need to add command line define specifying model of STM32F1 in use.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..