5 years, 5 months ago.

"IRQ_RX" has already been declared in the current scope in "extras/mbed/hal/can_api.h" .

I am actually working on CAN protocol to implement it in my automation, I used CANnucleo library for my application and this error is popping up : Error: "IRQ_RX" has already been declared in the current scope in "extras/mbed/hal/can_api.h", Line: 36, Col: 6 Can any please suggest me how to get rid of this error ?

1 Answer

5 years, 5 months ago.

Hello Dheeraj,

The CANnucleo library became obsolete. Do not use it in new projects. That library was developed back in 2015 when CAN support for NUCLEO boards was missing in MBED. Nowadays, you do not have to add any additional library to your project to work with CAN. Try the CAN hello, world example available here or the CAN_Hello demo (built with Mbed os-2).

Accepted Answer