Hi,
I am working on BBB Wireless using Blinka Library by Circuit Python. However, when I try to use the busio to configure SPI1. I was returned the error below.
Code to configure SPI1:
spi = busio.SPI(board.SCK_1, MOSI=board.MOSI_1, MISO=board.MISO_1)
Error returned:
Traceback (most recent call last):
File "/var/lib/cloud9/MyFirstPythonProject/MyFirstPythonProgram.py", line 7, in <module>
spi = busio.SPI(board.SCK_1, MOSI=board.MOSI_1, MISO=board.MISO_1)
File "/usr/local/lib/python3.7/dist-packages/Adafruit_Blinka-6.2.2-py3.7.egg/busio.py", line 192, in __init__
(clock, MOSI, MISO), spiPorts
ValueError: No Hardware SPI on (SCLK, MOSI, MISO)=(SPI1_SCLK, SPI1_D0, SPI1_D1)
Valid SPI ports:((0, SPI0_SCLK, SPI0_D1, SPI0_D0), (1, SPI1_SCLK, SPI1_D1, SPI1_D0))
Appreciate if anyone can advise me on how to resolve this issue.
Beagle Bone Black Wireless SPI1 Not Working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 14194
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Beagle Bone Black Wireless SPI1 Not Working
I take it everything works correctly when using SPI0?
Longer thread on this that might be relevant from last year:
https://github.com/adafruit/Adafruit_Blinka/issues/100
Code: Select all
spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
https://github.com/adafruit/Adafruit_Blinka/issues/100
Please be positive and constructive with your questions and comments.