CAN bus interrupt problem (MBED 5.15)

sixBase3
Mon, 02 Nov 2020 20:09:54 +0000
Mbed OS

Hi
I’ve been attempting to use the CAN bus with interrupts (using .attach).
However whenever I attach my handler, it appears that I can not read the CAN bus.
And after a while, MBED crashes with a Mutex error.

I found this link over on github which describes a problem similar but this is a 3 yr old bug that appears open. CAN read doesn't work when the interrupt is attached. · Issue #5267 · ARMmbed/mbed-os · GitHub

Can anyone using STM32 give me a simplistic piece of code that works with CAN RX interrupts? Much appreciated.
Bill

14 posts - 4 participants