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.

TCAN1043G-Q1: When CAN bus is high loading , the frame will lose

Part Number: TCAN1043G-Q1

CAN frame drop issue may happen occasionally if we set the gap of frames to 1 ms when test between  CAN1 and CAN2.

And the issue can’t be reproduced after prolong it to 2 ms.

The commands we use are listed below:

ip link set can1 up type can bitrate 500000 dbitrate 500000 sjw 7 restart-ms 1000 berr-reporting on fd on

ip link set can2 up type can bitrate 500000 dbitrate 500000 sjw 7 restart-ms 1000 berr-reporting on fd on

candump -d -e -n 500 can2 > /root/can2dump.log &

cangen can1 -I 168 -L 8 -g 1 -n 500 -v -v > /root/can1gen.log

sed -i 's/^\s*can[12]\s*//' can2dump.log && sed -i 's/^\s*can[12]\s*//' can1gen.log

diff can2dump.log can1gen.log

When the issue happens, 500 frames are sent but only 499 frames are received.

We have this issue reproduced several times, which frame might be missing is random.

Does TI have any idea on this issue?

  • Hey user,

    Thanks for bringing this to E2E and providing all the information up front. This speeds up the debug process tremendously!

    First we need to deduce if this is an issue with controller sampling, CAN bus signal integrity, or both. Is it possible to share waveforms of TXD, CANH, CANL, and RXD so we can understand what the waveforms look like?

    Regards,

    Eric Hackett 

  • Hi Eric 

    I think it is difficult to capture the waveform of lost frame. And the normal waveform is as below figure.

    Do you have any idea to capture the waveform of lost frame. The lost frame might be missing is random.

    yellow-RX

    blue -TX

    red- CANL

    green-CANH

  • Hi user,

    How long is the total test? It might be possible to scope shot the whole test beginning to end and to see if there is one section completely missing in the middle of the test.

    If this is not possible can you try the test with a smaller number of frames sent like 10-20 and see if it is either the beginning or the last frame that is not being sent.

    Best,

    Chris