s32k144 CAN recover bus off status

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k144 CAN recover bus off status

2,103件の閲覧回数
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,720件の閲覧回数
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