Hello Team,
We’re working on the AGX Orin SOM with a custom build using the R35.5 release and followed the link Jetson AGX Xavier Developer Kit CAN commmunication error - #8 by KevinFFF for an external loopback with CAN buses. However, I am encountering an issue with the external loopback.
When I enter the command candump can1
in one terminal and cansend can1 123#abcdabcd
in another terminal, no data is returned. After entering cansend can1 123#abcdabcd
for the first time, I can see the data on the CAN1_DOUT port signal in the CRO. However, subsequent attempts do not show any data.
I would appreciate your support in identifying what might be missing or incorrect.
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 busybox devmem 0x0c303018
0x0000C458
sudo busybox devmem 0x0c303010
0x0000C400
sudo busybox devmem 0x0c303008
0x0000C458
sudo busybox devmem 0x0c303000
0x0000C400
dmesg log
[ 2335.434227] mttcan_controller_config: ctrlmode 30
[ 2335.434262] mttcan c310000.mttcan can0: Bitrate set
[ 2335.434271] mttcan c310000.mttcan can0: wait for bus off seq
[ 2335.446330] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 2335.446531] IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
[ 2335.452125] mttcan c310000.mttcan can0: IR 0xa000000 PSR 0x70d
[ 2339.819424] mttcan_controller_config: ctrlmode 30
[ 2339.819458] mttcan c320000.mttcan can1: Bitrate set
[ 2339.819468] mttcan c320000.mttcan can1: wait for bus off seq
[ 2339.831569] mttcan c320000.mttcan can1: Bit0 Error Detected
[ 2339.831940] IPv6: ADDRCONF(NETDEV_CHANGE): can1: link becomes ready
[ 2339.837368] mttcan c320000.mttcan can1: IR 0xa000000 PSR 0x70d
[ 2354.755103] mttcan c320000.mttcan can1: Bitrate set
[ 2360.401922] mttcan c310000.mttcan can0: Bitrate set
[ 2363.971340] mttcan_controller_config: ctrlmode 30
[ 2363.971377] mttcan c320000.mttcan can1: Bitrate set
[ 2367.763986] mttcan_controller_config: ctrlmode 30
[ 2367.764025] mttcan c310000.mttcan can0: Bitrate set
[ 2377.557929] mttcan c320000.mttcan can1: Bit0 Error Detected
[ 2377.563761] mttcan c320000.mttcan can1: IR 0x8010000 PSR 0x71d
[ 2377.569858] mttcan c310000.mttcan can0: Stuff Error Detected
[ 2377.575732] mttcan c310000.mttcan can0: IR 0x8010000 PSR 0x711
[ 2377.581842] mttcan c320000.mttcan can1: entered error warning state
[ 2377.588365] mttcan c320000.mttcan can1: entered error passive state
[ 2377.594888] mttcan c320000.mttcan can1: entered bus off state
[ 2377.600847] mttcan c320000.mttcan can1: Bit0 Error Detected
[ 2377.606624] mttcan c320000.mttcan can1: IR 0xb800000 PSR 0x7e5
[ 2377.613434] mttcan c310000.mttcan can0: entered error warning state
[ 2377.619915] mttcan c310000.mttcan can0: entered error passive state
[ 2382.027729] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 2382.033566] mttcan c310000.mttcan can0: IR 0x8010000 PSR 0x77d
[ 2382.039844] mttcan c310000.mttcan can0: entered bus off state
[ 2382.045773] mttcan c310000.mttcan can0: Bit0 Error Detected
[ 2382.051536] mttcan c310000.mttcan can0: IR 0xa000000 PSR 0x7e5
Thank you for your support.
Regards,
Parashuram