Jetson Nano SPI not working

Hi all,

I am trying to open SPI communication port on Jetson Nano but I could not be successful. I can see this :

ls /dev/spi*
/dev/spidev0.0 /dev/spidev0.1 /dev/spidev1.0 /dev/spidev1.1

How can i tell if spi port is opened successfully or not ? I am connected MOSI (19) of SPI1 to MISO (21). Then i am tried this :
SPI Test

$ sudo ./spidev_test -D /dev/spidev1.1 -v -p “HelloWorldtesstt” -s 50000
spi mode: 0x0
bits per word: 8
max speed: 50000 Hz (50 KHz)
TX | 48 65 6C 6C 6F 57 6F 72 6C 64 31 32 33 34 35 36 37 38 39 61 62 63 64 65 66 __ __ __ __ __ __ __ | HelloWorldtesstt
RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ | …

I can’t see anything on the RX line. Please let me know if you have any solution for this issue.

Hi mucahit.unal,

Are you using the devkit or custom board for Jetson Nano?
What’s your Jetpack version in use?

Please refer to the following thread to verify SPI loopback test step-by-step.
Jetson Nano SPI Bus Not Working - #10 by KevinFFF

Hi KevinFFF,

First of all, thank you for your feedback. I am using devkit for Jetson Nano. I checked my jetpack version :

it is 4.6.3 . I clicked to the link you sent, but I couldn’t do step 2. How can i remove GPIO usage of SPI pins ? I checked flash log dmesg for dtb : tegra210-p3448-0000-p3449-0000-b00.dts

Also i tried :

sudo /opt/nvidia/jetson-io/jetson-io.py

but does not work, suddenly crashed.

You could refer to the following thread to modify this through dissembling the dtb.
Problem with SPI in Jetson Nano - #14 by KevinFFF

Is there any error message when you run Jetson-IO?

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