s32k144 CAN recover bus off status

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

s32k144 CAN recover bus off status

1,346 Views
shingozhou
Contributor III

Hi:

How to identify the CAN bus status as bus off or normal state without receiving data ? Through reading register CAN_ESR1[BOFFINT]?

I want to record the number of times CAN enter the bus off state, obviously, It sets automatic recovering from bus off state disabled. I re-initial the flexcan driver after bus off status, and how to know the current status whether normal or bus off without receiving data. 

BR

shingo

1 Reply

963 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

yes, the CAN_ESR1[BOFFINT] can be used. The BOFFINT is set when FlexCAN enters Bus off state.

Further the CAN_ESR1[SYNCH] and CAN_ESR1[FLTCONF] bits can be used to know the state of the module.

BR, Petr