Hello,
I am working with the Apalis i.MX8 8GB 32GB V1.1A on the Apalis Evaluation Board V1.1Z, using the Toradex Multimedia Reference Image. While setting up CAN bus communication, I’m encountering a “bus-off” error after attempting to send a CAN message. Below are the detailed steps and output:
- Apalis iMX8 QuadMax 8GB Wi-Fi / Bluetooth IT
- Apalis Evaluation Board V1.1Z
- Apalis-iMX8_Reference-Multimedia-Image 6.7.0
PN: 0067
Setup and Configuration:
root@apalis-imx8-15310003:~# ip link set can0 up type can bitrate 250000
[ 2179.664285] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
CAN0 Interface Details:
root@apalis-imx8-15310003:~# ip -details link show can0
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP mode DEFAULT group default qlen 10
link/can promiscuity 0 minmtu 0 maxmtu 0
can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0
bitrate 250000 sample-point 0.875
tq 50 prop-seg 37 phase-seg1 32 phase-seg2 10 sjw 1 brp 2
flexcan: tseg1 2..96 tseg2 2..32 sjw 1..16 brp 1..1024 brp_inc 1
flexcan: dtseg1 2..39 dtseg2 2..8 dsjw 1..4 dbrp 1..1024 dbrp_inc 1
clock 40000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 parentbus platform parentdev 5a8d0000.can
Sending a CAN Message:
root@apalis-imx8-15310003:~# cansend can0 123#DEADBEEF
Error Encountered:
[ 2201.068954] flexcan 5a8d0000.can can0: bus-off
CAN0 Interface Details After Error:
root@apalis-imx8-15310003:~# ip -details link show can0
3: can0: <NO-CARRIER,NOARP,UP,ECHO> mtu 16 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 10
link/can promiscuity 0 minmtu 0 maxmtu 0
can state BUS-OFF (berr-counter tx 0 rx 0) restart-ms 0
bitrate 250000 sample-point 0.875
tq 50 prop-seg 37 phase-seg1 32 phase-seg2 10 sjw 1 brp 2
flexcan: tseg1 2..96 tseg2 2..32 sjw 1..16 brp 1..1024 brp_inc 1
flexcan: dtseg1 2..39 dtseg2 2..8 dsjw 1..4 dbrp 1..1024 dbrp_inc 1
clock 40000000 numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535 parentbus platform parentdev 5a8d0000.can
As seen, after sending the CAN message, the interface goes into a “bus-off” state. I have checked the bitrate, and everything seems to be set up correctly.
Request for Assistance:
- Is there something I am missing in the configuration?
- Has anyone encountered similar issues, and how can I resolve this “bus-off” error?
Any guidance would be appreciated.
Thank you!