Jetson 模组
Jetson AGX Orin
Jetson 软件
JetPack 5.1.2
问题描述
orin设定方法如下:
sudo busybox devmem 0x0c303018 w 0xc458
sudo busybox devmem 0x0c303010 w 0xc400
sudo busybox devmem 0x0c303008 w 0xc458
sudo busybox devmem 0x0c303000 w 0xc400
sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on
sudo ip link set can1 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on
orin的canbus在发送数据的时候,出现异常(如短接can_h和can_l导致的异常)以后。
1-设定restart-ms为100(ip link set can0 type can bitrate 500000 restart-ms 100),can的发送不能恢复,接收可以自动恢复。
2-先down后up后,can的发送不能恢复,接收可以恢复。
3-重新加载mttcan驱动后接收和发送可恢复。
错误日志
[ 186.258118] net can0: mttcan device registered (regs=000000008bb8ab7b, irq=14)
[ 186.291835] mttcan c310000.mttcan can0: Bitrate set
[ 186.291922] mttcan c310000.mttcan can0: Bitrate set
[ 186.291999] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 222.951261] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 222.957017] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x71d
[ 222.963028] mttcan c310000.mttcan can0: entered error warning state
[ 222.969471] mttcan c310000.mttcan can0: entered error passive state
[ 222.975927] mttcan c310000.mttcan can0: entered bus off state
[ 222.981830] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 222.987560] mttcan c310000.mttcan can0: IR 0xb800000 PSR 0x7e5
[ 400.816856] mttcan c310000.mttcan can0: Bitrate set
[ 400.816941] mttcan c310000.mttcan can0: Bitrate set
[ 400.816949] mttcan c310000.mttcan can0: wait for bus off seq
[ 400.829018] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 400.829061] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 400.834776] mttcan c310000.mttcan can0: IR 0xa000000 PSR 0x70d
请问这个是什么原因,谢谢。