Jetson CAN

Dear sir,suggest me regarding CAN prottocol in jetson AGX xavier module 8GB.
i have tetsed two CAN controller in loopback mode working fine.but CAN0 TO CAN1 communication not happening.

i have used two SN65HVD233QDRQ1 with 120 ohm termination register. connection is CANH TO CANH and CANL TO CANL .

hello kamadollishivakumar1,

please review the connections, did you have only one termination resistor or you have resistor at both ends?
have you also try connect the ground signal? this should given a more resilient network. thanks

Both end 120 OHM resistor is present and also in my case both tranrecievr gnd is common.

is there problem with clock source.

hello kamadollishivakumar1,

may I know which JetPack release you’re working? for Jetson NX, CAN parent clock is changed to “pllc”, before r32.5 it was “osc”.
please also refer to developer guide, CAN (Controller Area Network).
you may check the clock sources for confirmation,
$ cat /sys/kernel/debug/bpmp/debug/clk/can1/parent
$ cat /sys/kernel/debug/bpmp/debug/clk/can1_core/rate

Jetpack is 4.5 and module is jetson agx xavier 8gb

hello kamadollishivakumar1,

please check the clock sources, you may change it as “osc” for confirmation, thanks

Clock source is OSC only

hello kamadollishivakumar1,

may I know your commands for send/receive CAN message on the both side,
is there any kernel related failure for reference?

No reference for kernel related issue

commands i used are as follows:

sudo busybox devmem 0x0c303000 32 0x0000C400
sudo busybox devmem 0x0c303008 32 0x0000C458
sudo busybox devmem 0x0c303010 32 0x0000C400
sudo busybox devmem 0x0c303018 32 0x0000C458
sudo modprobe can
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 loopback on
sudo ip link set can1 type can bitrate 500000 loopback on
sudo ip link set up can0
sudo ip link set up can1

loopback CAN0(TESTED OK)

candump can0
cansend can0 123#abcdefg

loopback CAN1(TETSED OK)

candump can1
cansend can1 123#abcdef

candump can0
cansend can1 123#abcdef