-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
[root@milkv-duo]~# find /proc/ -iname '*spi*'
/proc/irq/14/41a0000.spi2
/proc/irq/15/41b0000.spi3
loopback wires in MilkV-Duo256M GP7 GP8 #1 and GP19 GP16 #2
[root@milkv-duo]~# spi-config -d /dev/spidev0.0 -q
/dev/spidev0.0: mode=0, lsb=0, bits=8, speed=1000000, spiready=0
[root@milkv-duo]~# spi-config -d /dev/spidev1.0 -q
/dev/spidev1.0: mode=0, lsb=0, bits=8, speed=1000000, spiready=0
[root@milkv-duo]~# ./spidev_test -D /dev/spidev0.0 -v -p "Hello SPI!"
-sh: ./spidev_test: not found
[root@milkv-duo]~# spidev_test -D /dev/spidev0.0 -v -p "Hello SPI!"
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 kHz)
TX | 48 65 6C 6C 6F 20 53 50 49 21 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |Hello SPI!|
RX | 00 00 00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |..........|
[root@milkv-duo]~# spidev_test -D /dev/spidev1.0 -v -p "Hello SPI!"
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 kHz)
TX | 48 65 6C 6C 6F 20 53 50 49 21 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |Hello SPI!|
RX | 00 00 00 00 00 00 00 00 00 00 __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ __ |..........|
and no TX/RX :(
Metadata
Metadata
Assignees
Labels
No labels