Hi, I got really helpful answer for my last question.
https://community.nxp.com/t5/MPC5xxx/MPC5748G-CAN-Bus-Off/m-p/1261695#M17968
I have a one more question.
CAN_ESR1.BOFFDONEINT is set after counting 128 occurrences of 11 consecutive recessive bits on the CAN bus.
And if CAN_ERS2.BOFFDONEMSK is set, an interrupt is generated to the CPU.
How is this related with CAN_CTRL1.BOFFREC bit?
I asserted CAN_CTRL1.BOFFREC(disable auto recovery) and asserted CAN_ERS2.BOFFDONEMSK, but didn't get out of the Bus-off state.
Is CAN_CTRL1.BOFFREC bit only related to get out of the Bus-Off state?
Solved! Go to Solution.
Hi,
yes, in manual recover mode you have to clear BOFFREC so you can get out of bus off state. After leaving bus off you can set BOFFREC again.
BR, Petr
Hi,
yes, in manual recover mode you have to clear BOFFREC so you can get out of bus off state. After leaving bus off you can set BOFFREC again.
BR, Petr