How to detect and handle bus off?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to detect and handle bus off?

4,922 Views
lpcware
NXP Employee
NXP Employee

Bus off means that the transmit error counter (see explanation further down) has reached 256. There
are many possible causes of this but it could mean that the CAN controller is misconfigured or the
controller is not connected to the CAN bus. The root cause of the problem should be addressed to stop
it happening again. For a misconfiguration it could be that the bit rate is incorrect.
Once in bus off the CAN controller will set a flag in the status register to indicate the state has been
entered and it is common that CAN controllers also trigger an interrupt.
Bus off mode traditionally can only be exited by re-initializing the CAN controller, but some newer CAN
controllers also allow to clear that state individually or even automatically after a certain time.

"FAQ contribution from Embedded Systems Academy, experts in CAN bus. For more information visit www.esacademy.com"

Labels (1)
Tags (1)
0 Kudos
Reply
0 Replies