Lpc 1768 can bus 问题

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

Lpc 1768 can bus 问题

1,791 Views
yeqing85123
Contributor II

您好,

       我用LPC1768的can,总线上有个节点偶尔进入bus_off state, 按照 LPC17xx User Manual  提供的 can error handling 处理方法,我的代码如下:

  LPC_CAN1->MOD = 1; // Enter Reset Mode

  LPC_CAN1->GSR = 0; // clear  tx error counter

  LPC_CAN1->CMR = (1<<1)|(1<<2)|(1<<3);

  LPC_CAN1->MOD = 0;// Return Normal operating

等待128 个 Bus Free condition 后,节点没有恢复正常工作,can controller 仍然无发正常收发。请问该如何恢复?

Tags (1)
2 Replies

1,112 Views
kerryzhou
NXP TechSupport
NXP TechSupport

楼主你好!

因为这个问题和你另外一个帖子问题重复,而且我已经在你另外一个帖子中回复了,所以你可以参考你的另一帖:

lpc1768 can 总线 bus_off 如何恢复

如果测试之后,发现还是有问题,欢迎在上面链接的帖子中予以回复,我会进一步给你提供支持。


Have a great day,
Jingjing

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,112 Views
lucy_wang
NXP Employee
NXP Employee

这个问题跟LPCXpresso无关,建议您把问题重新在LPC产品论坛提问,LPC ,会有专家给您解答。