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.

TMS320F28379S: CAN auto restart setup for TMS320F28379S

Part Number: TMS320F28379S

Hi, How do I implement the auto CAN bus restart for the TMS320F28379S device, if there is bus-off due to an intermittent short on the bus?

Currently as soon as the bus is shorted the CAN goes into a bus-off and to restart the CAN the device has to be power-cycled.

I'm using Simulink for the design so any help would be most appreciated.

Thanks

  • Ian,

       The module itself supports automatic recovery from BO. From the TRM:

    "After the CAN has entered the bus-off state, the CPU can start a bus-off-recovery sequence by resetting the Init bit. If this is not done, the module will stay in bus-off state.


    The CAN provides an automatic auto-bus-on feature which is enabled by the ABO bit. If set, the CAN will automatically start the bus-off-recovery sequence. The sequence can be delayed by a user-defined number of clock cycles."

    Exactly how to enable this SIMULINK is something I'd be unable to help you with. Please reach out to Mathworks on their forum.