2008-12-12 16:27:09 SPI user mode driver not working as expected
Michael Rijo (UNITED STATES)
Message: 66669
Hi all,
I am trying to get the spi_test application to work on my bf548 ezkit. I have enabled the "User mode SPI device driver support" under the SPI support in the kernel config. I also enabled the spi_test program in the application settings. When uClinux boots up I get spidev0.1 in my /dev directory. I then run the spi_test program and got the following output.
./spi_test -r 32 /dev/spidev0.1
/dev/spidev0.1: spi mode 0, 8 bits per word, 3125000 Hz max
read(32, 32): ff ff, ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
./spi_test -m 32 /dev/spidev0.1
/dev/spidev0.1: spi mode 0, 8 bits per word, 3125000 Hz max
response(32, 33): ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
When I run this program I would expect to see activity on SCK1, MISO1, or MOSI1 but I do not. I am looking at these signals on the spi header and I have also made sure to connect jumper 2. I have spent some time looking at the board config file as well as the source for the spi_test program and couldn't identify any problems. Am I missing anything?
Thanks
QuoteReplyEditDelete
2008-12-12 18:48:17 Re: SPI user mode driver not working as expected
Mike Frysinger (UNITED STATES)
Message: 66670
the format is <bus>.<cs>, not <cs>.<bus> ... so /dev/spidev0.1 means you're using CS1 on SPI0 ...