- Basic Info:
hardware: jetson-agx-orin-devkit
JetPack : 6.2
Jetson Linux : 36.4.3
- cansetup:
ip link set can0 up type can bitrate 500000 restart-ms 100 berr-reporting on
ip link set can1 up type can bitrate 500000 restart-ms 100 berr-reporting on
can0/ can1 pinmux is already config as wiki
0x0c303018 ==> 0x0000C458
0x0c303010 ==> 0x0000C400
0x0c303008 ==> 0x0000C458
0x0c303000 ==> 0x0000C400
- test case
in my custom carrier board, short the can0 and can1 to test
test case1: can0 receive and can1 send test fine, can0 can receive all the data from can1
candump can0
cansend can1
test case2: can1 receive and can0 send test failed with bus off and Bit0 Error as below
candump can1
cansend can0
[ 684.018315] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 684.018348] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 684.018402] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 684.018455] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 684.018509] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 684.018574] mttcan c310000.mttcan can0: entered bus off state
[ 684.018576] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 684.139862] mttcan c310000.mttcan can0: Bit0 Error Detected
any idea for this bug? seems like the official carrier board also have this issue. which i measure the carrier board signal
I also try using a usb-can box to test:(usb-can-box and can0, can1 all link in)
usb-can-box send, can0 and can1 both can receive data
can1 send, usb-can-box and can0 bot can receive data
can0 send, the issue above is trigger
what if I try
cansend can0 123#12345678 in the while loop, I got below errors
[ 735.090912] mttcan c310000.mttcan can0: entered error warning state
[ 735.090915] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.090919] mttcan c310000.mttcan can0: can_put_echo_skb: BUG! echo_skb 5 is occupied!
[ 735.090930] mttcan c310000.mttcan can0: can_put_echo_skb: BUG! echo_skb 6 is occupied!
[ 735.090932] mttcan c310000.mttcan can0: entered error passive state
[ 735.090939] mttcan c310000.mttcan can0: can_put_echo_skb: BUG! echo_skb 7 is occupied!
[ 735.090949] mttcan c310000.mttcan can0: can_put_echo_skb: BUG! echo_skb 8 is occupied!
^C
root@ubuntu:~# [ 735.090959] mttcan c310000.mttcan can0: can_put_echo_skb: BUG! echo_skb 9 is occupied!
[ 735.090965] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.090968] mttcan c310000.mttcan can0: can_put_echo_skb: BUG! echo_skb 10 is occupied!
[ 735.091019] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091072] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091127] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091182] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091235] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091289] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091343] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091396] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091450] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091504] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091558] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091612] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091666] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.091735] mttcan c310000.mttcan can0: entered bus off state
[ 735.091736] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 735.206292] mttcan c310000.mttcan can0: Bit0 Error Detected
I mainly test on 64G module, also try on 32G module and got the same error too


