Hello,
I try to implement automatic bus-off recovery using RTD AUTOSAR driver (CAN.h).
I didn't find documentation, but I tried lots of configuration. My findings are :
- For automatic bus-off recovery, peripheral option "Can Auto BusOff Recovery" must be checked and bus-off interruption must be disabled. In this case the communication recover automatically after a short cut between CAN_L and CAN_H, it's what I need, BUT I have no way to transmit the Bus Off state to the application in order to log the error state -> Do I miss something ?
- For manual bus-off recovery, peripheral option "Can Auto BusOff Recovery" could be checked or unchecked, but BUS-OFF interrupt shall be enabled in order to restart the CAN communication. It's ok for me, because I can log the error and restart the communication when I want.
In both cases, using interruption will put automatically the controller in stopped state, it this a requirement of AUTOSAR driver ?
Thanks for your help