Nucleo -f429zi-144 with CAN communication

Hello Nada,

  • what version of MbedOS do you use or want to use?
  • what you mean with “but it didn’t work”? The code stucks or MbedOS crash?

From version 5.12 (If I remember) were implemented mutexes to all methods what read/write to/from a peripherals, like (Buffered)Serial, Can, I2C and so on. So it can not be called in ISR, the EventQeue it takes it out of Interrupt context to user context, that is why EventQeue was recommended.

CAN bus interrupt problem (MBED 5.15) - Mbed OS - Arm Mbed OS support forum

Examples are old (out of date) but with 5.15 they will be ok I think.
CAN_queue_test - Some test about how work with Queue. The target i… | Mbed
CANLoop_EventQueue - CAN-BUS loop back with EventQueue | Mbed

BR, Jan

1 Like