I’m trying to connect a Lepton 3.5 w/ Breakout Board v2.0 to the Jetson Orin Nano.
I went through the Jetson I/O Config and enabled SPI.
I checked in /dev/spi*
and have the following:
crw-rw---- 1 root gpio 153, 0 Sep 8 2022 /dev/spidev0.0
crw-rw---- 1 root gpio 153, 1 Sep 8 2022 /dev/spidev0.1
crw-rw---- 1 root gpio 153, 2 Sep 8 2022 /dev/spidev2.0
crw-rw---- 1 root gpio 153, 3 Sep 8 2022 /dev/spidev2.1
When I put a jumper on the MISO and MOSI (19/21), and run this quick Python check, I get SPI loopback test passed
:
import spidev
import time
spi = spidev.SpiDev()
spi.open(0, 1) # bus 0, device 0
spi.max_speed_hz = 500000
spi.mode = 0
msg = [0xFF, 0xAA, 0x55, 0x00]
while True:
resp = spi.xfer2(msg)
if resp == msg:
print("SPI loopback test passed")
else:
print("SPI loopback test failed")
# Sleep for a bit
time.sleep(1)
However, when I got to read data from the camera, this is nothing coming in on these pins but garbage.
I then went on and tested out using this Medium article and repo: Thermal Images on Jetson™ Nano with FLIR Lepton3 - Myzhar's MyzharBot and more...
When I run the code, it tells me *** Forcing RESYNC ***
and that’s it.
I checked the I2C, and it is working on I2C-1, pins 27/28.
I set the bufsize
to 65565
also, and tried as little as 20484
.
I’m running out of options, and I’m not sure what’s happening here. I re-checked the cables a bunch, and they all seem to match where they’re supposed to be on the SPI and I2C connections.