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?