For the SPI0, we provide the test demo for test it.

The SPI device inode is "/dev/spidev1.1"", you can write the Test demo refer to the CD://linux/example/spi/spidev_test.c

Then compile it:

# arm-none-linux-gnueabi-gcc spidev_test.c - o spidev_test

Then copy to the board and test the demo with the follow command:

./spidev-test -s 0

Market Mail :
Support Mail: Sales Phone: +86-755-29638421

CoreWind Online Chat>
Work time: 09:00-18:00
Copyright @ 2014 to 2020 - CoreWind Tech.