Documentation/Allspark2-Orin NX WikiEnglish · NX
Browse documentation
10 Interface Function Test Demos

10.8 SPI Test

1. Connect the self made loopback cable.

1 min read · English documentation

SPI Function Test

Test Equipment

Power adapter, Allspark-Orin NX main unit, and a self-made loopback cable (4-pin cable with MISO and MOSI shorted together)
PIN1 PIN2 PIN3 PIN4 PIN5 PIN6
3V3 MOSI SCK MISO CS GND

Test Objective

Test the functionality of the SPI-related circuitry

Test Procedure

  1. Connect the self-made loopback cable.

图片.png

  1. Enable SPI.

A. Open the script.

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

B. Select the 40-pin configuration.

图片.png

C. Select Configure header pins manually.

图片.png

D. Select SPI1 (press the Space key), and then select Back.

图片.png

E. Select Save pin changes.

图片.png

F. Select Save and exit. The system restarts automatically.

图片.png
  1. Run the test command and enter the amov password.
sudo spidev_test -D /dev/spidev0.0 -v -p 11/dasd/$$$

图片.png

  1. The test is successful if dasd in TX matches dasd in RX in the figure.