I tried using the example of this API reference: CAN - API references and tutorials | Mbed OS 6 Documentation
Even after removing the printf-statements, the device gives me back the following error:
++ MbedOS Error Info ++ Error Status: 0x80010133 Code: 307 Module: 1 Error Message: Mutex: 0x20002CBC, Not allowed in ISR context Location: 0x800211F Error Value: 0x20002CBC Current Thread: rtx_idle Id: 0x20001170 Entry: 0x800212D StackSize: 0x200 StackMem: 0x200014B8 SP: 0x2001FEDC For more info, visit: https://mbed.com/s/error?error=0x80010133&tgt=1 -- MbedOS Error Info --
I even isolated the call
can1.write from the if-loop showing, that it is exactly the
can1.write call which causes the issue. It seems like the example cannot run on MbedOS 6.7, although it is shown as such. Is there any other possibility to try out this example? I am running my code on a Nucleo-f446re.