s32k144 CAN recover bus off status

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s32k144 CAN recover bus off status

1,644 次查看
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 回复

1,261 次查看
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