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
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