40-pin IO Development
Experiment 07 - SPI Experiment
- Hardware Connection
Connect MISO (IO19) and MOSI (IO21) directly together using a jumper:

- Software Execution
Enter the user home directory and run:
- cd user
- sudo python3 ./test_spi.py
From the listed SPI controllers, choose the bus number and chip select as input options. For example, to test spidev0.0, both the bus num and cs num are 0. Press Enter to confirm:
Terminal output:

When the program runs correctly, it will continuously print 0x55 0xAA. If it prints 0x00 0x00, the SPI loopback test has failed.
