spidev loopback test fails
-
Hello Guys,
I am new to omega ..i have omega development kit with omega 2s+ i have compiled spidev test utility for testing spi . and when i run the test by calling (./spidev -v) it reads garbage value.
as a given below[[[[ [spi mode: 0x0
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 | 00 A0 02 87 E8 26 E8 7F 00 00 00 00 00 00 00 00 2F 6C 69 62 2F 6C 69 62 67 63 63 5F 73 2E 73 6F | .▒.▒▒&......../lib/libgcc_s.so ]]]]]]]]I have connected MOSI with MISO for loopback test. but its not reading properly.
please help me.
-
@rahul2413 looks like you're trying to do a full-duplex SPI transaction. The Omega2 family does not support full-duplex on the hardware SPI bus.
Half-duplex transactions will work fine. More details in this FAQ post.
If you absolutely need full-duplex, you can try using a software-based SPI bus.