Hello,
If an error callback function is installed via FLEXCAN_DRV_InstallErrorCallback, it enables error interrupts (internal error, rx warning, tx warning, busoff). However, there's only one interrupt handler FLEXCAN_Error_IRQHandler, it calls error_callback function with event type FLEXCAN_EVENT_ERROR.
I don't know the root cause why the error interrupt is triggered.
If I want to get busoff status of the CAN bus, what can I do to implement it?
At the same time, if I want to get the internal error status, how do I distinguish the INT_ERR and INT_BUSOFF?
BRs,
Matthew Xu