Can Bus-Off problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can Bus-Off problem

1,457 Views
yeqing85123
Contributor II

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.

Labels (1)
Tags (1)
0 Kudos
1 Reply

769 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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:

lpc1768 can 总线 bus_off 如何恢复

  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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos