I have the BBB board flashed with the latest image. Trying to get a simple SPI python program up and running:
from Adafruit_BBIO.SPI import SPI
spi = SPI(0,0)
spi.close()
Running it returns:
IOError: [Errno 2] No such file or directory
So far the forum posts I've found talk about capes and slot files and kernel overlays -- it's my understanding that all of this low level stuff has changed.
Is there an up to date tutorial with a simple example showing how I can access SPI0 on my BBB?
BBB SPI simple BBIO example?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- drewfustini
- Posts: 944
- Joined: Sat Dec 26, 2015 1:19 pm
Re: BBB SPI simple BBIO example?
I'd like to know more about the configuration of your BeagleBone.
Please paste the output of:
and please paste the output of:
If you are able to, then it would also be helpful to see the output from strace which shows which system calls were issued:
Run:
Please paste the output of:
Code: Select all
sudo /opt/scripts/tools/version.sh
Code: Select all
ls -la /dev/spidev*
Run:
Code: Select all
sudo strace -f -o /tmp/strace.log python ./name-of-your.py
Code: Select all
grep spidev /tmp/strace.log
Please be positive and constructive with your questions and comments.