Jetson nano and mcp2515 can module

hi shgarg, my MCP nitialized successfully and interrupts assigned correctly under /proc/interrupts but no communication. (1) . I am sure 120 ohm termination is there on the bus (2) There is no activity on CAN H and L pins.
But it is ok on respberry pi

1 Like

Hi xudonglei2020, I have a working dts file modified from Linux_for_Tegra and Seed-Studio’s MCP implementation. I got it working on my Jetson Nano with an MCP2515 board from Joy-It (SBC-CAN01) running a 16 MHz oscillator. Feel free to try it.

To use:

  1. Clone the Seeed-Studio github repository as stated by andrew_h above from GitHub - Seeed-Studio/seeed-linux-dtoverlays: Device Tree Overlays for Seeed boards
  2. Download the dts file here and save it to seeed-linux-dtoverlays-master/overlays/jetsonnano
  3. In the folder seeed-linux-dtoverlays-master run “make all_jetsonnano”
  4. Remove the existing overlays in /boot - I got a conflict that prevented me from running jetson-io when both files were still present
    “sudo rm /boot/tegra210-p3448-0000-p3449-0000-a01-mcp251x.dtbo”
    “sudo rm /boot/tegra210-p3448-0000-p3449-0000-a02-mcp251x.dtbo”
  5. Copy the generated jetson-mcp251x.dtbo file from seeed-linux-dtoverlays-master/overlays/jetsonnano into /boot/
  6. Run jetson-io and configure for MCP251x

If you need to run a different oscillator frequency change it under clock-frequency on line 30 of the dts file
jetson-mcp251x.dts (3.8 KB)