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.

CCS/TMS570LS0432: how to notify that the cable of CAN is connected or not?

Part Number: TMS570LS0432

Tool/software: Code Composer Studio

Hey guys

I am working with tms570ls0432 microcontroller. I am permanently sending data to another device. I have to distinguish when it fails to send. for example sometimes the destination node is not connected or the there are some problems in bus (bus condition), how should I know what is happened?

I have read the its reference manual but I could not understand it. Could you please tell me what I should do?

Regards

Hamid Kavian Athar

  • Hello Hamid,

    It's better to enable the feature of re-transmission, and auto-bus on.

    When Auto-Bus-On is enabled, the CPU can start a Bus-Off-Recovery sequence automatically whenever the DCAN has entered BUS-OFF state.
    If re-transmission is enabled, the DCAN will automatically retransmit frames that have lost arbitration or have been disturbed by errors during transmission.

    You can enable the error interrupts for the errors.