Hello,
I’m using a 2-Channel Isolated CAN FD Expansion HAT for Raspberry Pi, Multi Protections on a Jetson Orin devKit. It’s using the 3.3V logic.
I was able to successfully test loopback mode by shorting MOSI and MISO pins (pin19 and pin21). I had enabled SPI using jetson-io.py, by configuring header pins manually and selecting spi1(19,21,23,24,26).
I’m also able to run the following simple spidev python script and can see there’s some data being sent through the CAN pins on the CAN FD Expansion Hat :
import spidev
import time
spi = spidev.SpiDev()
spi.open(0,0)
to_send = [0x01, 0x02, 0x03,0x01, 0x02, 0x03,0x01, 0x02, 0x03]
while True:
spi.xfer(to_send)
time.sleep(0.01)
But I’m not sure how to use this CAN FD Expansion Hat as a CAN interface. I think I need to modify something in the device-tree ?
I see posts like these, that were tried on the Jetson Nano using similar boards https://wiki.seeedstudio.com/2-Channel-CAN-BUS-FD-Shield-for-Raspberry-Pi/#using-can-bus-shiled-with-jetson-nano . But not sure how to go about this on the Jetson Orin .
If anyone can point me in the right direction. Thank you.