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/TMS320F28035: CAN stuck on Error-passive state

Part Number: TMS320F28035

Tool/software: Code Composer Studio

Hi Everyone,

Sorry I'm a bit new to the TMS family. I have custom CAN device that will be operating in an automotive environment. In some cases, the device is disconnected from the CAN bus for a short period due to vibration. So essentially, it is disconnected from the CAN network at random times, but still needs to send data at an intermittent rate. The device have a termination resistor on the board. The issue that I am having is that when the device is plugged out, the Transmit Error Counter counts up to 128. The device, from what I can see never goes into Bus-off state even though I reset the Passive-error flag in the CANES register. What I need is for the device to recover after it has been plugged out and in again to the CAN bus without getting stuck in the Passive-error state. Or it should just carry on to the Bus-off state and come out of the state at a later stage and reset its counters. But now, the counter and Passive-error is stuck and I have now way of resetting the error to start transmit again.

I would love some help, since I have been fighting with this bug for a couple of days now.

Regards,

Bartho