Hi , I have a problem when use can bus of Lpc1768. When the can bus run into Bus-Off state,I try to restart it. According to the LPC17xx User Manual, Below is my restart code:
LPC_CAN1->MOD = 1; // Enter Reset Mode
LPC_CAN1->GSR = 0; // Clear the Tx error counter
LPC_CAN1->CMR = (1<<1)|(1<<2)|(1<<3);// reset cmr
LPC_CAN1->MOD = 0;// Return Normal operating
But ,after 128 Bus Free condition (11 consecutive recessive bits),the bus still off.
How could I handled the Bus-Off error?
Thanks a lot.
Hi Customer,
I found you already create 2 posts which have the same question with this post, I already answer you in your another post:
Please refer to that answer, and try again.
If you still have question after testing, please reply me in your above link, I will provide service in that post.
Wish it helps you!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------