AGX CAN bus fault

The problem now is that we have three AGX modules. In the absence of any misoperation, the CAN bus fault starts from today. The “cansend” command sends a message on one terminal, and another terminal uses the “candump” command to capture the packet and finds that no data was captured.The data is viewed with “ip -details link show can0” and it is found that the can0 device enters the bus off state. Device can1 is also the same problem.


Are you facing problem with two AGX CAN communication or with single AGX too it is not working?
Make sure you have followed below steps to enable CAN on both the AGX.

  1. write below values to corresponding CAN registers
    sudo busybox devmem 0x0c303000 w 0x0000C400
    sudo busybox devmem 0x0c303008 w 0x0000C458
    sudo busybox devmem 0x0c303010 w 0x0000C400
    sudo busybox devmem 0x0c303018 w 0x0000C458

  2. Load CAN modules
    sudo modprobe can
    sudo modprobe can_raw
    sudo modprobe mttcan
    sudo ip link set can0 type can bitrate 250000
    sudo ip link set up can0
    ip -details -statistics link show can0

Double cross check your connections, Bus errors are mostly seen due to loose connections or transceiver issues. I assume you have connected transceivers on mttcan controller provided on 40 pin on AGX.

Let me know if you have done all these and still face the issues.

Shubhi Garg