When the CAN BUS goes bus-off, what are the necessary steps to recover the module?
There is a note in the HRM, but it's not very clear as to the actual steps needed to perform this operation:
- During the bus-off recovery sequence, the configuration mode request CAN_CTL.CCR bit is set by the internal logic, and the CAN core module does not automatically come out of the bus-off mode. The CAN_
CTL.CCR bit cannot be reset until the bus-off recovery sequence has completed.
NOTE: This behavior can be overridden by setting the CAN_CTL.ABO bit. After exiting the bus-off or configuration modes, the CAN error counters are reset.