Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
The “bus-off” error in CAN communication typically indicates that the CAN controller has detected too many errors on the bus and has transitioned into a state where it stops transmitting messages. Here are a few steps and considerations to help resolve this issue:
-
Check Physical Connections: Ensure that the CAN bus is properly terminated with 120-ohm resistors at both ends. Poor termination can lead to reflections and errors on the bus.
-
Bitrate Matching: Double-check that all devices on the CAN bus are configured to use the same bitrate. A mismatch in bitrate can cause communication errors leading to a bus-off state.
-
Cable Length and Quality: Verify that the cable length is within the acceptable range for the bitrate being used. Also, ensure that the cable quality is suitable for CAN communication.
-
Error Counters: Monitor the error counters (
txandrx) to see if they provide any clues about the source of the errors. High error counts can indicate issues with the physical layer or configuration. -
Isolation: If possible, isolate the Apalis iMX8 and the Apalis Evaluation Board from other devices on the CAN bus to determine if the issue persists. This can help identify if another device is causing the problem.
-
Software Configuration: Ensure that the CAN interface is correctly configured in the software. Double-check the settings for sample point, propagation segment, and phase segments.
-
Restart CAN Interface: After a bus-off state, the CAN interface needs to be restarted. This can be done by bringing the interface down and then up again:
ip link set can0 down ip link set can0 up type can bitrate 250000 -
Check for Known Issues: Review the errata and known issues for the Apalis iMX8 to see if there are any documented problems related to CAN communication.
If the issue persists after these checks, it may be beneficial to reach out to Toradex technical support for further assistance, as they can provide more specific guidance based on the hardware and software configuration.
Please, also check if these links can help you solve your problem:
CAN packets dropped if high bus load on Apalis iMX8 Boot2Qt image and working GUI.