AnsweredAssumed Answered

lpc1768 can 总线 bus_off 如何恢复

Question asked by 庆和 叶 on Jul 14, 2016
Latest reply on Jul 27, 2016 by Kerry Zhou

您好,

     lpc1768 芯片, can 总线节点进入bus_off状态,根据 LPC17xx User Manual 的处理方法,代码如下:

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 后, 节点依然无法恢复正常工作。请问该如何解决?使节点能恢复正常工作模式。

Outcomes