SPI Functionality with Jetson Nano using Python


I am searching online for a while and couldn’t find anything yet so I decided to ask you for help.
I am trying to use the SPI module of my Jetson Nano to use it in a python code. I cannot find any package or functions to use it. I wonder if you can help me.


Have a check this.

@ShaneCCC Thank you for your reply, it is very useful.
I still have some issues:
I wrote a code on an arduino uno to test the SPI communication with the Jetson Nano and connected it to the Jetson SPI1 (pins 19 to 24).
On the Nano, I pip installed the library, then tried the code on the website:

import spidev
spi = spidev.SpiDev()
spi.open(1,0) I tried both (1,0) and (0,0)
x = [10,10,10,1,1,1,1,1,1]

But the arduino uno never received any of the data. Also the arduino was sending some data to the Nano, but the Nano was always reading 0. I tried setting the arduino as slave and I tried it as master. Didn’t make any changes.

Any idea what I could be missing?

Thanks for your help!

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.

Could you try have SPI1 connect to SPI2 to verify with the SPI device loopback to check if can receive correct data?