CAN - bit error (Nvidia Jetson Xavier AGX)

Hi

I’m trying to use CAN (can0) on Nvidia Jetson Xavier AGX to communicate with my STM32 but everytime I use it I get
[ 191.900153] mttcan c310000.mttcan can0: Bit1 Error Detected
[ 191.901791] mttcan c310000.mttcan can0: IR 0x8000000 PSR 0x77c

To run can I use the following script:
#!/bin/bash
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 ifconfig can0 down
sudo ip link set can0 type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on
sudo ip link set can0 up
sudo ifconfig can0 txqueuelen 1000

I’ve tested CAN on loopback mode and everything was working fine

In the files I included the output of sudo dmesg and ip -details -statistics link show can0

Any help would be greatly appreciated.

dmesg_output.txt (76.4 KB)
ip_details.txt (1.1 KB)

Hi,

Where you able to fix the issue?
which tegra version are you using?

please also refer to developer guide, Controller Area Network (CAN) for details of how to use it in user space.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.