0

Beagle Bone Black Wireless SPI1 Not Working
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Beagle Bone Black Wireless SPI1 Not Working

by cheechein on Thu Feb 18, 2021 9:31 am

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.

cheechein
 
Posts: 1
Joined: Thu Feb 18, 2021 9:26 am

Re: Beagle Bone Black Wireless SPI1 Not Working

by mikeysklar on Thu Feb 18, 2021 7:31 pm

I take it everything works correctly when using SPI0?

Code: Select all | TOGGLE FULL SIZE
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

mikeysklar
 
Posts: 4509
Joined: Mon Aug 01, 2016 8:10 pm

Please be positive and constructive with your questions and comments.