I don’t think pimux is involved here, and ,I tried typing the following command into Jetson-Xavier-NX. It can be used
sudo busybox devmem 0x0c303020 32 0x0000C458
sudo busybox devmem 0x0c303018 32 0x0000C400
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 loopback on
sudo ip link set can0 up
(3)I found that if I typed the following command, after a while, I couldn’t control orin nx, couldn’t type commands, either keyboard or mouse.
sudo busybox devmem 0x0c303020 32 0x0000C458
sudo busybox devmem 0x0c303018 32 0x0000C400
sudo modprobe can_raw
sudo modprobe mttcan
sudo ip link set can0 type can bitrate 500000 loopback on
sudo ip link set can0 up
(4)This is the latest
If I enter the following command, then I can receive the CAN command from the PC, but I cannot send it.
It should be 3.3V for CAN rather than 5V.
Could you use 3.3V for CAN instead?
Do you have other CAN transceiver like SN65HVD230?
Could you just run candump in background?
$ candump can0 &
Does the freeze happen after sudo ip link set can0 up?
and the freeze means you could not use keyboard/mouse, but you still can run the command through serial console?
And it has nothing to do with the instruction “sudo ip link set can0 up”, after I input the following alone, wait for a period of time (about 20s), the desktop will freeze. The mouse can be moved, but no commands can be entered.
(1)I was wondering,,if I just typed in the wrong instructions, can you give me a set of instructions that can use “can” in the jetson orin nx, and I’ll try it.
(2)These seem to be the only instructions available online and in documents. The main ones are as follows.
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 can0 up