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?
已解决! 转到解答。