Hi @Luis_Sanchez,
Looks like the instruction for testing SPIDEV using spidev_test
utility is messed up! You should be able to test it using the below instructions:
TX/RX with Loopback
$ sudo ./spidev_test -CHOv -D /dev/spidev0.0 -loop
spi mode: 0x27
bits per word: 8
max speed: 500000 Hz (500 KHz)
TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@....�..................�.
RX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@....�..................�.
TX/RX with without Loopback
When you don’t pass -loop
argument, you can see only FF
in the Received data.
$ sudo ./spidev_test -CHOv -D /dev/spidev0.0
spi mode: 0x7
bits per word: 8
max speed: 500000 Hz (500 KHz)
TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D | ......@....�..................�.
RX | FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF | ................................
Will change the instructions accordingly!
Thanks,
Mani