Can Bus-Off problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Can Bus-Off problem

2,080 次查看
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.

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,392 次查看
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 项奖励
回复