J-f-Jensen / libraries

Libraries
4 stars 2 forks source link

multiple definition of `USB_LP_CAN1_RX0_IRQHandler' #2

Open ayudhien opened 3 years ago

ayudhien commented 3 years ago

Hello,

this is nice library, I was trying to work with it but got some error :

usbd_conf.c:(.text.USB_LP_CAN1_RX0_IRQHandler+0x0): multiple definition of `USB_LP_CAN1_RX0_IRQHandler'; libraries/STM32CAN/STM32CAN.cpp.o:STM32CAN.cpp:(.text.USB_LP_CAN1_RX0_IRQHandler+0x0): first defined here
collect2: error: ld returned 1 exit status

I'm using STM32Arduino 2.0.0 and STM32 blue pill, any suggest to fix this issue?

many thanks.

J-f-Jensen commented 3 years ago

On the bluepile you cannot use usb and can at the same time as they use the same interrupt.

ayudhien commented 3 years ago

thanks for your response, yes it's working.

J-f-Jensen commented 3 years ago

Please share how you got it working, then i can add it to my library

ayudhien commented 3 years ago

there is nothing to do with your library, that's from Arduino IDE menu to disable USB support.