Skip to content

[SPI] SPI not working STOCK testing using spidev_test #55

@sunnydrake

Description

@sunnydrake
[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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions