50.7.4.2.2 Error Interrupt Handler

ERRA, WARN, ERRP and BOFF (CAN_SR) store the key transitions of the CAN bus status as defined in figure Line Error Mode. The transitions depend on the TEC and REC (CAN_ECR) values as described in Fault Confinement.

These flags are latched to keep from triggering a spurious interrupt in case these bits are used as the source of an interrupt. Thus, these flags may not reflect the current status of the CAN bus.

The current CAN bus state can be determined by reading the TEC and REC fields in CAN_ECR.