This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28034: CAN Bus Error Handling and Classification

Part Number: TMS320F28034

Hi all ,

I would like to inquire about the handling method for CAN bus errors. How is each error category handled? Do you provide any related examples or detailed documentation explaining the CAN bus error handling process and how to recover to normal operation mode?

Thanks !!

  • 您好,

         请参考设计手册, 在“Table 14-22. Error and Status Register (CANES) Field Descriptions” 指示错误类型,

          使用“14.9.14 CAN Error Counter Registers“恢复通讯。

          TMS320F2803x Microcontrollers Technical Reference Manual (Rev. A)

         CAN通讯示例代码

          ecan_back2back   

          Programming Examples for the TMS320x28xx eCAN (Rev. B)

  • Thank you for your response.

    According to the design manual, when the CAN module's receive error counter (CANREC) or transmit error counter (CANTEC) reaches 128, it will automatically enter the "Bus-off" state, meaning the bus will be offline. In this situation, the current handling method is to use can_deinit to reinitialize the CAN module, thereby clearing the error state.

    However, the question is whether there are other methods to handle the issue in a timely manner when the error count approaches 128, in order to avoid directly entering the "Bus-off" state. Or, is can_deinit the only feasible handling method?

  • 您好,

    “14.9.14 CAN Error Counter Registers“ 中没有提到用can_deinit清除错误状态。

    它描述的是芯片如何检测CAN总线上出现的错误,自动进入bus-off状态,然后如何自动恢复bus-on.

     请注意,bus-off是由于CAN总线出现问题,不是TMS320F28034的CAN模块引起的。    

x 出现错误。请重试或与管理员联系。