Jetson AGX Orin Devkit
JetPack 7.2.1 with Jetson Linux 39.2.1
按图示连接CAN0 CAN1
以下是串口执行过程:
root@tegra-ubuntu:/home/chip# busybox devmem 0x0c303018 w 0xc458
root@tegra-ubuntu:/home/chip# busybox devmem 0x0c303010 w 0xc400
root@tegra-ubuntu:/home/chip# busybox devmem 0x0c303008 w 0xc458
root@tegra-ubuntu:/home/chip# busybox devmem 0x0c303000 w 0xc400
root@tegra-ubuntu:/home/chip# modprobe can
root@tegra-ubuntu:/home/chip# modprobe can_raw
root@tegra-ubuntu:/home/chip# modprobe mttcan
root@tegra-ubuntu:/home/chip# ip link set can0 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on
root@tegra-ubuntu:/home/chip# ip link set can1 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on
root@tegra-ubuntu:/home/chip# candump -x any &
[1] 3336
root@tegra-ubuntu:/home/chip# cansend can0 123#abcdabcd
[ 635.225510] mttcan c310000.mttcan can0: entered error warning state
[ 635.232025] mttcan c310000.mttcan can0: entered error passive state
[ 635.238505] mttcan c310000.mttcan can0: Format Error Detected
[ 635.244431] mttcan_poll_ir: 247 callbacks suppressed
[ 635.249558] mttcan c310000.mttcan can0: IR 0x9810000 PSR 0x77a
[ 635.255607] mttcan c320000.mttanoot@tegra-ubed errhomwarnin# tate
[ 635.262104] mttcan c320000.mttcan can1: entered error passive state
[ 635.268583] mttcan c320000.mttcan can1: Bit0 Error Detected
[ 635.274337] mttcan c320000.mttcan can1: IR 0x9810000 PSR 0x775
[ 635.280408] mttcan c310000.mttcan can0: entered bus off state
[ 635.286345] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 635.292102] mttcan c310000.mttcan can0: IR 0xa000000 PSR 0x7e5
root@tegra-ubuntu:/home/chip# ip link set can0 down
root@tegra-ubuntu:/home/chip# ip link set can0 type can bitrate 500000 loopback on
root@tegra-ubuntu:/home/chip# ip link set can0 up
[ 675.926212] mttcan c310000.mttcan can0: Bit0 Error Detected
root@tegra-ubuntu:/home/chip# [ 675.931982] mttcan c310000.mttcan can0: IR 0xa000000 PSR 0x70d
root@tegra-ubuntu:/home/chip# cansend can0 123#abcdabcd
[ 683.035047] mttcan c320000.mttcan can1: Bit0 Error Detected
root@tegra-ubuntu:/home/chip# [ 683.040831] mttcan c320000.mttcan can1: IR 0x8010000 PSR 0x775
can0 RX - - 123 [4] AB CD AB CD
can0 TX - - 123 [4] AB CD AB CD
内部控制器环回是可以的,但是CAN0-CAN1h回环收不到数据。

