Hi Joaquim Martinez,
1. Assert BOFFREC is Automatic recovering from Bus Off state disabled.
If you want to enable the automatic recovery mode, you need to negated the BOFFREC bit.
You can check SYNCH and FLTCONF bit in the CANx_ESR1 register to check the state.
2. Yes, you can check SYNCH and FLTCONF bit.
3. I don't think after automatic recovery you need to reset the CAN module. Because after enter bus off mode, the REC and TEC wil be cleared automatically.
But, if you enable the Bus off interrupt, you need to clear the according flag by yourself, eg, BOFFINT.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------