Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149846

Forum Post: RE: AM3517 SPI pin muxing details

$
0
0

[quote user="ASHOK palaniswamy"]
echo "SPI TEST" >/dev/spidev1.0  

echo "ASHOK" >/dev/spidev2.0

[/quote]

The spidev driver doesn't support a redirection from echo.  You should use the spi test utils mentioned in a previous post or write your own app to test the spi.  The MCSPI allows you to configure the pins as either MISO or MOSI, so check that the kernel settings are what you require.  If you write your own app, the steps are something like:

long data = 12

spimsg.tx_buf = &data;

spifd = open(spidev1.0)

ioctl(spifd, SPI_IOC_MESSAGE(1), spimsg)

close(spifd)


There should be a clock even if the MISO/MOSI don't toggle.  Having the clock means that part of the spidev driver was configured properly.


Viewing all articles
Browse latest Browse all 149846

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>