[meta-ti] Different response if I change the mode of SPI, but not yet right ?

Riko Ho antonius.riko at gmail.com
Thu Jul 6 00:22:51 PDT 2017


Dear Team Member,
Different response if I change the mode of SPI, but not yet right ? What 
is the issue ?

root at beaglebone:~# ./spidev_test
spi mode: 0
bits per word: 8
max speed: 500000 Hz (500 KHz)

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 00 00 00 00 00
00 00 00 00 00 00
00 00
root at beaglebone:~# ./spidev_test -C
spi mode: 4
bits per word: 8
max speed: 500000 Hz (500 KHz)

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 00 00 00 00 00
00 00 00 00 00 00
00 00
root at beaglebone:~# ./spidev_test -CO
spi mode: 6
bits per word: 8
max speed: 500000 Hz (500 KHz)

03 03 03 03 03 03
03 03 03 03 03 03
03 03 03 03 03 03
03 03 03 03 03 03
03 03 03 03 03 03
03 03 03 03 03 03
03 03
root at beaglebone:~# ./spidev_test -CH
spi mode: 5
bits per word: 8
max speed: 500000 Hz (500 KHz)

0F 0F 0F 0F 0F 0F
0F 0F 0F 0F 0F 0F
0F 0F 0F 0F 0F 0F
0F 0F 0F 0F 0F 0F
0F 0F 0F 0F 0F 0F
0F 0F 0F 0F 0F 0F
0F 0F
root at beaglebone:~#



More information about the meta-ti mailing list