Beagle Bone Black Wireless SPI1 Not Working

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cheechein
 
Posts: 1
Joined: Thu Feb 18, 2021 9:26 am

Beagle Bone Black Wireless SPI1 Not Working

Post by cheechein »

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.

User avatar
mikeysklar
 
Posts: 13824
Joined: Mon Aug 01, 2016 8:10 pm

Re: Beagle Bone Black Wireless SPI1 Not Working

Post by mikeysklar »

I take it everything works correctly when using SPI0?

Code: Select all

spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
Longer thread on this that might be relevant from last year:

https://github.com/adafruit/Adafruit_Blinka/issues/100

Locked
Please be positive and constructive with your questions and comments.

Return to “Beagle Bone & Adafruit Beagle Bone products”