Hi Gator

I am having the same problem and symptoms on my SPI setup. I am using the 
latest image on the BB site ( Debian 9.2 2017-10-10 4GB SD IoT 
<https://debian.beagleboard.org/images/bone-debian-9.2-iot-armhf-2017-10-10-4gb.img.xz>)
 
that cames with the kernel version 4.4.91-ti-r133.

The result of the spi-test.py is an array of 255... I also have compiled 
the spi-test.c and also no electrical activity on the SPI0 pins and (of 
course) no data received and displayed as output.

What have you done to make it work? what is missing?

Thanks

Nuno F.




sexta-feira, 6 de Janeiro de 2017 às 14:41:25 UTC, Gator Guy escreveu:
>
> Hello all, I am new to the world of the BBB and have been trying to get 
> the SPI on the BBB to run a basic loopback test (connecting D1 and D0) but 
> only retrieve 255's instead of the data I am sending out. I was relatively 
> sure that everything needed to run SPI was correctly installed on the BBB 
> and that the program I have in place (which I found online) should work to 
> do what I think. Below is a copy of the  code. Thank you for your time! 
>
>
> from Adafruit_BBIO.SPI import SPI
>
> spi = SPI(0,0) 
> spi.mode=2 
>
> spi.msh=2000000 
> spi.open(0,0) 
>
> print spi.xfer2([32, 11, 110, 22, 220]) 
> spi.close() 
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/f4019d95-7c04-41d9-83d0-dcfdf46be8a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to