++ 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.
Form my point of view, it is not related to current version of MbedOS. That will happen with all versions of MbedOS 5.12 +.
Fastest is switch to the bare metal profile probably. Or a variant with EventQueue.