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.

TMS570LS3137 DCAN

Other Parts Discussed in Thread: TMS570LS3137, HALCOGEN

Can I configure the TMS570LS3137 DCAN to be used for Error Counting, Error Sinalling and Fault Confinement?

Thanks and Regards,

Caven

  • Caven,

    Yes, the DCAN module fully supports the CAN specification version 2.0B. This includes error counters for both TX and RX. Error signalling is supported via transmission of an "ERROR FLAG". Fault confinement is supported via the "error active", "error passive" and "bus off" conditions of any DCAN node.

    Regards,
    Sunil
  • Sunil,

    Thanks for your answer. But the problem is I don't know how to configure the TMS570LS3137 DCAN to realize these functions. If can I configure the DCAN via the HALCOGEN software?
    Can you give me a feasible scheme?
  • Sunil,

    Thanks for your answer. But the problem is I don't know how to configure the TMS570LS3137 DCAN to realize these functions. If can I configure the DCAN via the HALCOGEN software?
    Can you give me a feasible scheme?

    Thanks and Regards,
    Caven
  • Caven,

    HALCoGen generates API functions for you to use to get information about the different error conditions. The DCAN ES (DCAN Error and Status) register holds status flags for all different error conditions. There are also separate flags that indicate whether the DCAN node is in an error-active, error-passive or bus-off condition. There are also API functions to read the current TX and RX error counts.

    You can review these API functions in the can.c file that is generated by HALCoGen when you enable the generation of DCANx drivers.

    Regards,
    Sunil