-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adafruit-circuitpython-motor fails with "RuntimeError: Cannot determine SOC peripheral base address" on Raspberry Pi 5 #847
Comments
Thanks. I'll take a look in a couple of days after I wrap up my current project and can devote more time to this. |
Thanks @makermelissa if it looks like a genuine bug and there's anything I can do to help you get to the bottom of it, just let me know |
@makermelissa I am experiencing the same error on Raspberry Pi 5 while testing CircuitPython's
|
I'll take a look later today. |
Ok, I think I have a grasp on the issue. First, the Pi 5 is expecting
I believe this is because we are mixing and matching libraries (libgpiod for gpio and rpi-lgpio for pwm). Easy fix would be to use rpi-lgpio for GPIO too, but there doesn't seem to be a good way to tell it to use rpi-lgpio (it is a compatibility layer for RPi.GPIO) only for Pi 5. I'll see if I can figure out a way, but requirements.txt isn't as granular as setup.py. Then I'll update GPIO to use rpi-lgpio as well. I may have painted myself into a corner a bit since libgpiod doesn't do PWM. So, fallback solution will be to make a copy of the PWMOut class and update both it and the GPIO use lgpio (without the compatibility layer). |
Ok good news is I was able to fix the setup to install rpi-lgpio and not RPi.GPIO for the Pi 5. That means moving over to using rpi-lgpio for the Pi 5, which should be about as simple as just having it use the Pi 4 stuff. |
Thanks for sorting that so quickly @makermelissa - I'll give that a try tomorrow. |
@makermelissa I've upgraded everything but unfortunately, I'm still getting the same error when I run the blinkatest.py file:
It looks like the changes you made are there. Is there any other reason why this might not be working for me? I'll paste in the output from the
|
Try running |
Sorry for the slow reply. My raspberry pi died and I had to get another one! I've just tried that and got the following:
Following that, it worked fine, so thank you for that! Shouldn't the install process have installed the rpi-lgpio library? |
Hello @makermelissa, Today, I followed the installation tutorial again on a fresh Raspberry Pi setup, referring to the Automated Install section of this guide. When I ran the following test code after completing the installation: import board
import digitalio
import busio
print("Hello, blinka!")
# Try to create a Digital input
pin = digitalio.DigitalInOut(board.D18)
print("Digital IO ok!")
# Try to create an I2C device
i2c = busio.I2C(board.SCL, board.SDA)
print("I2C ok!")
# Try to create an SPI device
spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
print("SPI ok!")
print("done!") I encountered the Perhaps it would be worth considering adding the installation of |
Yeah, that might be a good idea, however, it should already be automatic as it is part of the setup script: https://github.com/adafruit/Adafruit_Blinka/blob/main/setup.py#L40 I'll have to take a look more closely after I wrap up some CircuitPython Code Editor changes. |
Hi @makermelissa ,
I still followed the same installation steps and also installed |
I follow the steps in Installing Blinka to install Blinka, Setup Virtual Environment and follow the Automated Install. Here is the console out put. This script configures your
Raspberry Pi and installs Blinka
RASPBERRY_PI_5 detected.
Updating System Packages
Blinka Hit:1 http://deb.debian.org/debian bookworm InRelease
Blinka Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Blinka Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Blinka Get:4 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [176 kB]
Blinka Get:5 http://deb.debian.org/debian-security bookworm-security/main armhf Packages [172 kB]
Blinka Get:6 http://deb.debian.org/debian-security bookworm-security/main Translation-en [107 kB]
Blinka Get:7 http://archive.raspberrypi.com/debian bookworm InRelease [39.0 kB]
Blinka Get:8 http://archive.raspberrypi.com/debian bookworm/main armhf Packages [454 kB]
Blinka Get:9 http://archive.raspberrypi.com/debian bookworm/main arm64 Packages [452 kB]
Blinka Fetched 1,503 kB in 3s (451 kB/s)
Reading package lists...
Blinka
Upgrading packages...
Blinka Reading package lists...
Blinka
Blinka Building dependency tree...
Blinka
Blinka Reading state information...
Blinka
Blinka Calculating upgrade...
Blinka
Blinka The following packages will be upgraded:
Blinka libpython3.11 libpython3.11-dev libpython3.11-minimal libpython3.11-stdlib
Blinka python3.11 python3.11-dev python3.11-minimal python3.11-venv
Blinka 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 11.8 MB of archives.
After this operation, 35.8 kB disk space will be freed.
Get:1 http://deb.debian.org/debian-security bookworm-security/main arm64 python3.11-venv arm64 3.11.2-6+deb12u3 [5,896 B]
Blinka Get:2 http://deb.debian.org/debian-security bookworm-security/main arm64 python3.11-dev arm64 3.11.2-6+deb12u3 [616 kB]
Blinka Get:3 http://deb.debian.org/debian-security bookworm-security/main arm64 libpython3.11-dev arm64 3.11.2-6+deb12u3 [4,387 kB]
Blinka Get:4 http://deb.debian.org/debian-security bookworm-security/main arm64 libpython3.11 arm64 3.11.2-6+deb12u3 [1,840 kB]
Blinka Get:5 http://deb.debian.org/debian-security bookworm-security/main arm64 python3.11 arm64 3.11.2-6+deb12u3 [573 kB]
Blinka Get:6 http://deb.debian.org/debian-security bookworm-security/main arm64 libpython3.11-stdlib arm64 3.11.2-6+deb12u3 [1,747 kB]
Blinka Get:7 http://deb.debian.org/debian-security bookworm-security/main arm64 python3.11-minimal arm64 3.11.2-6+deb12u3 [1,857 kB]
Blinka Get:8 http://deb.debian.org/debian-security bookworm-security/main arm64 libpython3.11-minimal arm64 3.11.2-6+deb12u3 [808 kB]
Blinka apt-listchanges: Reading changelogs...
Blinka Fetched 11.8 MB in 1s (12.0 MB/s)
Blinka (Reading database ...
Blinka (Reading database ...
Blinka 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
Blinka (Reading database ...
Blinka 25%
(Reading database ...
Blinka 30%
(Reading database ...
Blinka 35%
(Reading database ... 40%
(Reading database ...
Blinka 45%
(Reading database ... 50%
Blinka (Reading database ... 55%
Blinka (Reading database ...
Blinka 60%
Blinka (Reading database ...
Blinka 65%
Blinka (Reading database ...
Blinka 70%
Blinka (Reading database ...
Blinka 75%
Blinka (Reading database ... 80%
Blinka (Reading database ... 85%
Blinka (Reading database ...
Blinka 90%
Blinka (Reading database ... 95%
Blinka
Blinka (Reading database ...
Blinka 100%
(Reading database ... 128179 files and directories currently installed.)
Blinka Preparing to unpack .../0-python3.11-venv_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking python3.11-venv (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../1-python3.11-dev_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking python3.11-dev (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../2-libpython3.11-dev_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking libpython3.11-dev:arm64 (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../3-libpython3.11_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking libpython3.11:arm64 (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../4-python3.11_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking python3.11 (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../5-libpython3.11-stdlib_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking libpython3.11-stdlib:arm64 (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../6-python3.11-minimal_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking python3.11-minimal (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Preparing to unpack .../7-libpython3.11-minimal_3.11.2-6+deb12u3_arm64.deb ...
Blinka Unpacking libpython3.11-minimal:arm64 (3.11.2-6+deb12u3) over (3.11.2-6+deb12u2) ...
Blinka Setting up libpython3.11-minimal:arm64 (3.11.2-6+deb12u3) ...
Blinka Setting up python3.11-minimal (3.11.2-6+deb12u3) ...
Blinka Setting up libpython3.11-stdlib:arm64 (3.11.2-6+deb12u3) ...
Blinka Setting up python3.11 (3.11.2-6+deb12u3) ...
Blinka Setting up libpython3.11:arm64 (3.11.2-6+deb12u3) ...
Blinka Setting up python3.11-venv (3.11.2-6+deb12u3) ...
Blinka Setting up libpython3.11-dev:arm64 (3.11.2-6+deb12u3) ...
Blinka Setting up python3.11-dev (3.11.2-6+deb12u3) ...
Blinka Processing triggers for systemd (252.26-1~deb12u2) ...
Blinka Processing triggers for man-db (2.11.2-2) ...
Blinka Processing triggers for mailcap (3.70+nmu1) ...
Blinka Processing triggers for desktop-file-utils (0.26-1) ...
Blinka Processing triggers for gnome-menus (3.36.0-1.1) ...
Blinka Processing triggers for libc-bin (2.36-9+rpt2+deb12u7) ...
Making sure the required version of Python is installed
Enabling I2C
Enabling SPI
Enabling Serial
Enabling SSH
Enabling Camera
Disable raspi-config at Boot
Making sure Python 3 is the default
Making sure PIP and setuptools is installed
Blinka Reading package lists...
Blinka
Blinka Building dependency tree...
Blinka
Blinka Reading state information...
Blinka
Blinka python3-pip is already the newest version (23.0.1+dfsg-1+rpt1).
python3-setuptools is already the newest version (66.1.1-1).
python3-setuptools set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Installing latest version of Blinka locally
Blinka Reading package lists...
Blinka
Blinka Building dependency tree...
Blinka Reading state information...
Blinka
Blinka i2c-tools is already the newest version (4.3-2+b3).
i2c-tools set to manually installed.
python3-libgpiod is already the newest version (1.6.3-1+b3).
Suggested packages:
libgpiod-doc
Blinka The following NEW packages will be installed:
Blinka libgpiod-dev
Blinka 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 58.4 kB of archives.
After this operation, 352 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main arm64 libgpiod-dev arm64 1.6.3-1+b3 [58.4 kB]
Blinka Fetched 58.4 kB in 0s (870 kB/s)
Blinka Selecting previously unselected package libgpiod-dev:arm64.
Blinka (Reading database ...
Blinka (Reading database ...
Blinka 5%
(Reading database ... 10%
Blinka
Blinka (Reading database ... 15%
Blinka (Reading database ... 20%
Blinka (Reading database ... 25%
Blinka (Reading database ...
Blinka 30%
Blinka (Reading database ... 35%
Blinka (Reading database ...
Blinka 40%
(Reading database ... 45%
Blinka (Reading database ... 50%
Blinka (Reading database ...
Blinka 55%
Blinka (Reading database ...
Blinka 60%
Blinka (Reading database ...
Blinka 65%
Blinka (Reading database ...
Blinka 70%
Blinka (Reading database ...
Blinka 75%
Blinka (Reading database ...
Blinka 80%
Blinka (Reading database ...
Blinka 85%
Blinka (Reading database ...
Blinka 90%
Blinka (Reading database ...
Blinka 95%
Blinka (Reading database ...
Blinka 100%
(Reading database ... 128179 files and directories currently installed.)
Blinka Preparing to unpack .../libgpiod-dev_1.6.3-1+b3_arm64.deb ...
Blinka Unpacking libgpiod-dev:arm64 (1.6.3-1+b3) ...
Blinka Setting up libgpiod-dev:arm64 (1.6.3-1+b3) ...
Blinka Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Blinka Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (0.7.1a4)
Blinka Collecting RPi.GPIO
Blinka Downloading RPi.GPIO-0.7.1.tar.gz (29 kB)
Blinka Preparing metadata (setup.py): started
Blinka Preparing metadata (setup.py): finished with status 'done'
Blinka Building wheels for collected packages: RPi.GPIO
Blinka Building wheel for RPi.GPIO (setup.py): started
Blinka Building wheel for RPi.GPIO (setup.py): finished with status 'done'
Blinka Created wheel for RPi.GPIO: filename=RPi.GPIO-0.7.1-cp311-cp311-linux_aarch64.whl size=69910 sha256=9ff607522b0c2c1be82613cd53b1c58bfca74740d047ce777da34cd0b249267f
Blinka Stored in directory: /home/amps_pi5/.cache/pip/wheels/58/9a/da/bc92ced3a63320f51bfb2eb461f0408a206acdcedfa57fbfbe
Blinka Successfully built RPi.GPIO
Blinka Installing collected packages: RPi.GPIO
Blinka Attempting uninstall: RPi.GPIO
Blinka Found existing installation: RPi.GPIO 0.7.1a4
Blinka Not uninstalling rpi-gpio at /usr/lib/python3/dist-packages, outside environment /home/amps_pi5/env
Blinka Can't uninstall 'RPi.GPIO'. No files were found to uninstall.
Blinka Successfully installed RPi.GPIO-0.7.1
Blinka Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Blinka Collecting adafruit-blinka
Blinka Downloading https://www.piwheels.org/simple/adafruit-blinka/Adafruit_Blinka-8.47.0-py3-none-any.whl (356 kB)
Blinka ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 356.1/356.1 kB 303.2 kB/s eta 0:00:00
Blinka
Blinka Requirement already satisfied: Adafruit-PlatformDetect>=3.70.1 in ./env/lib/python3.11/site-packages (from adafruit-blinka) (3.73.0)
Blinka Collecting Adafruit-PureIO>=1.1.7
Blinka Downloading https://www.piwheels.org/simple/adafruit-pureio/Adafruit_PureIO-1.1.11-py3-none-any.whl (10 kB)
Blinka Collecting binho-host-adapter>=0.1.6
Blinka Downloading https://www.piwheels.org/simple/binho-host-adapter/binho_host_adapter-0.1.6-py3-none-any.whl (10 kB)
Blinka Collecting pyftdi>=0.40.0
Blinka Downloading https://www.piwheels.org/simple/pyftdi/pyftdi-0.55.4-py3-none-any.whl (145 kB)
Blinka ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 145.6/145.6 kB 294.2 kB/s eta 0:00:00
Blinka
Blinka Collecting adafruit-circuitpython-typing
Blinka Downloading https://www.piwheels.org/simple/adafruit-circuitpython-typing/adafruit_circuitpython_typing-1.11.0-py3-none-any.whl (11 kB)
Blinka Requirement already satisfied: RPi.GPIO in ./env/lib/python3.11/site-packages (from adafruit-blinka) (0.7.1)
Blinka Collecting rpi-ws281x>=4.0.0
Blinka Downloading rpi_ws281x-5.0.0.tar.gz (64 kB)
Blinka ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.5/64.5 kB 503.7 kB/s eta 0:00:00
Blinka
Blinka Preparing metadata (setup.py): started
Blinka Preparing metadata (setup.py): finished with status 'done'
Blinka Collecting sysv-ipc>=1.1.0
Blinka Downloading sysv_ipc-1.1.0.tar.gz (99 kB)
Blinka ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 99.4/99.4 kB 551.3 kB/s eta 0:00:00
Blinka
Blinka Preparing metadata (setup.py): started
Blinka Preparing metadata (setup.py): finished with status 'done'
Blinka Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from binho-host-adapter>=0.1.6->adafruit-blinka) (3.5)
Blinka Collecting pyusb!=1.2.0,>=1.0.0
Blinka Downloading https://www.piwheels.org/simple/pyusb/pyusb-1.2.1-py3-none-any.whl (58 kB)
Blinka ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.4/58.4 kB 181.2 kB/s eta 0:00:00
Blinka
Blinka Collecting adafruit-circuitpython-busdevice
Blinka Downloading https://www.piwheels.org/simple/adafruit-circuitpython-busdevice/adafruit_circuitpython_busdevice-5.2.9-py3-none-any.whl (7.5 kB)
Blinka Collecting adafruit-circuitpython-requests
Blinka Downloading https://www.piwheels.org/simple/adafruit-circuitpython-requests/adafruit_circuitpython_requests-4.1.6-py3-none-any.whl (10 kB)
Blinka Requirement already satisfied: typing-extensions~=4.0 in /usr/lib/python3/dist-packages (from adafruit-circuitpython-typing->adafruit-blinka) (4.4.0)
Blinka Collecting Adafruit-Circuitpython-ConnectionManager
Blinka Downloading https://www.piwheels.org/simple/adafruit-circuitpython-connectionmanager/adafruit_circuitpython_connectionmanager-3.1.1-py3-none-any.whl (7.8 kB)
Blinka Building wheels for collected packages: rpi-ws281x, sysv-ipc
Blinka Building wheel for rpi-ws281x (setup.py): started
Blinka Building wheel for rpi-ws281x (setup.py): finished with status 'done'
Blinka Created wheel for rpi-ws281x: filename=rpi_ws281x-5.0.0-cp311-cp311-linux_aarch64.whl size=121647 sha256=8c3aeee80d11ce5acfb66a97a6d7148b06d26139018658519eac5ff720ade51f
Blinka Stored in directory: /home/amps_pi5/.cache/pip/wheels/c8/b3/52/cfca661555719e40842e4f28b31e0e80a3f70677444c9adbd9
Blinka Building wheel for sysv-ipc (setup.py): started
Blinka Building wheel for sysv-ipc (setup.py): finished with status 'done'
Blinka Created wheel for sysv-ipc: filename=sysv_ipc-1.1.0-cp311-cp311-linux_aarch64.whl size=67976 sha256=594ae25435510116b7bedfaad7bca8a661d7e768c10a39b0216f4935f9921d9f
Blinka Stored in directory: /home/amps_pi5/.cache/pip/wheels/49/6b/46/7e9cd45fc4d3818714fd36ffa22e8dec31d687861d77f9587e
Blinka Successfully built rpi-ws281x sysv-ipc
Blinka Installing collected packages: sysv-ipc, rpi-ws281x, pyusb, binho-host-adapter, Adafruit-PureIO, pyftdi, Adafruit-Circuitpython-ConnectionManager, adafruit-circuitpython-requests, adafruit-circuitpython-busdevice, adafruit-circuitpython-typing, adafruit-blinka
Blinka Successfully installed Adafruit-Circuitpython-ConnectionManager-3.1.1 Adafruit-PureIO-1.1.11 adafruit-blinka-8.47.0 adafruit-circuitpython-busdevice-5.2.9 adafruit-circuitpython-requests-4.1.6 adafruit-circuitpython-typing-1.11.0 binho-host-adapter-0.1.6 pyftdi-0.55.4 pyusb-1.2.1 rpi-ws281x-5.0.0 sysv-ipc-1.1.0
DONE.
Settings take effect on next boot.
REBOOT NOW? [Y/n] y
Reboot started... What I can't understand is, it try to build the RPi.GPIO and install it. Then it try uninstall it but unsuccessfully. ...
Blinka Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (0.7.1a4)
Blinka Collecting RPi.GPIO
Blinka Downloading RPi.GPIO-0.7.1.tar.gz (29 kB)
Blinka Preparing metadata (setup.py): started
Blinka Preparing metadata (setup.py): finished with status 'done'
Blinka Building wheels for collected packages: RPi.GPIO
Blinka Building wheel for RPi.GPIO (setup.py): started
Blinka Building wheel for RPi.GPIO (setup.py): finished with status 'done'
Blinka Created wheel for RPi.GPIO: filename=RPi.GPIO-0.7.1-cp311-cp311-linux_aarch64.whl size=69910 sha256=9ff607522b0c2c1be82613cd53b1c58bfca74740d047ce777da34cd0b249267f
Blinka Stored in directory: /home/amps_pi5/.cache/pip/wheels/58/9a/da/bc92ced3a63320f51bfb2eb461f0408a206acdcedfa57fbfbe
Blinka Successfully built RPi.GPIO
Blinka Installing collected packages: RPi.GPIO
Blinka Attempting uninstall: RPi.GPIO
Blinka Found existing installation: RPi.GPIO 0.7.1a4
Blinka Not uninstalling rpi-gpio at /usr/lib/python3/dist-packages, outside environment /home/amps_pi5/env
Blinka Can't uninstall 'RPi.GPIO'. No files were found to uninstall.
Blinka Successfully installed RPi.GPIO-0.7.1
... After reboot, I did try out the blinkatest.py and I get the same error as @eMUQI (env) amps_pi5@raspberrypi:~ $ python3 blinkatest.py
Hello, blinka!
Traceback (most recent call last):
File "/home/amps_pi5/blinkatest.py", line 8, in <module>
pin = digitalio.DigitalInOut(board.D4)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/amps_pi5/env/lib/python3.11/site-packages/digitalio.py", line 193, in __init__
self.direction = Direction.INPUT
^^^^^^^^^^^^^^
File "/home/amps_pi5/env/lib/python3.11/site-packages/digitalio.py", line 223, in direction
self._pin.init(mode=Pin.IN)
File "/home/amps_pi5/env/lib/python3.11/site-packages/adafruit_blinka/microcontroller/bcm283x/pin.py", line 40, in init
GPIO.setup(self.id, GPIO.IN)
RuntimeError: Cannot determine SOC peripheral base address Then what I did is to install rpi-lgpio (env) amps_pi5@raspberrypi:~ $ pip3 install rpi-lgpio
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting rpi-lgpio
Downloading https://www.piwheels.org/simple/rpi-lgpio/rpi_lgpio-0.6-py3-none-any.whl (11 kB)
Requirement already satisfied: lgpio>=0.1.0.1 in /usr/lib/python3/dist-packages (from rpi-lgpio) (0.2.2.0)
Installing collected packages: rpi-lgpio
Successfully installed rpi-lgpio-0.6 and try again on the blinkatest.py (env) amps_pi5@raspberrypi:~ $ python3 blinkatest.py
Hello, blinka!
Digital IO ok!
I2C ok!
SPI ok!
done! @makermelissa Can we have the RPi.GPIO completely uninstall? Many thanks. |
Yeah, with the way I thought I had it, RPi.GPIO should not have been installed and rpi-lgpio should have been installed instead. |
_check(lgpio.gpio_claim_input(_chip, gpio, { I followed every step mentioned above correctly but finally got this error ? could you please help me on this ? |
_check(lgpio.gpio_claim_input(_chip, gpio, { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/lgpio.py", line 755, in gpio_claim_input return _u2i(_lgpio._gpio_claim_input(handle&0xffff, lFlags, gpio)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i raise error(error_text(v)) lgpio.error: 'GPIO busy'
I have enabled 1-Wire , That caused the issue. Thank you ! |
HI, I have seen that this error has been resolved for a while but it is still occurring on my PI 5. I am not using the adafruit-motor library, I am trying to use adafruit-circuitpython-fingerprint for my fingerprint sensor. when running blinkatest.py now if you need any extra info I am happy to provide it. |
Board Name
Raspberry Pi 5
Steps
Following the instructions to install adafruit on a Raspberry Pi 5. I used the automated raspi-blinka.py script (see logs below). I then ran the blinkatest.py file, changing board.D4 to board.D0 as I have the onewire interface enabled. The script runs successfully. I then tried to follow the example on servo control and the following script:
Fails with:
I saw that there was an issue #776 that was supposed to fix this, but the code from that PR is present and I'm still seeing the above error.
Description
This is on a Raspberry Pi 5
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
uname -a:
Linux jenspi 6.6.31+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
Additional information
Logs from raspi-blinka.py:
The text was updated successfully, but these errors were encountered: