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.

Bus off CAN Controller

Other Parts Discussed in Thread: TMS570LS3137

Hi,

I hope someone can help me.

I have a CAN network with 4 devices. One of these devices is my TMS570LS3137 through interface CAN0

The problem is that after poweron-reset, 10-15 seconds CAN driver changes its state to BUS OFF. I do not understand why, since the other devices do not enter to busoff and still working normally.

I activated Auto-Bus-On in the initialization of the driver, but the problem was not fixed.

Any ideas??

Thanks
Edgar

  • Hi Edgar,

    Not an expert in CAN myself; but from reading the CAN spec the bus-off condition is entered after the TRANSMIT ERROR COUNT hits 256.

    So I would think that the TMS570LS3137 is having some trouble transmitting - it could get into bus off very quickly and then go quiet without affecting the others.

    Have you checked the obvious things like making sure the clock to the CAN controller is setup correctly and the bit timings are set correctly?

    How about the board that you are using, is it a custom board or one of our EVMs?

    Have you looked at the signals at all?   I found this interesting appnote:  www.ti.com/lit/an/slyt325/slyt325.pdf  that talks about how signal integrity can cause a bus-off.

    Let me know what you find.

    Best Regards,

    Anthony

  • Hi Anthony,

    I solved the problem.
    The problem was caused by an RTOS task. The stack size of the task was too small.

    Thanks,
    Edgar

  • Edgar,

    Great job!   I hate those task-too-small problems because they show up with the strangest fail signatures.

    Best Regards,

    Anthony