adafruit / adafruit/Adafruit_CircuitPython_NeoPixel

Raspberry pi 5 Cannot determine SOC peripheral base address

Open
#164 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
329
Forks
96
PR merge metrics
No merged PRs in 30d

Description

Hi,
I am trying to use the NeoPixel library with my Raspberry Pi 5, but I am encountering the following error:

```
Traceback (most recent call last):
File "/home/usuario/program/driver/program.py", line 14, in
leds = neopixel.NeoPixel(board.D21, 200)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/neopixel.py", line 141, in __init__
self.pin = digitalio.DigitalInOut(pin)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/digitalio.py", line 193, in __init__
self.direction = Direction.INPUT
^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/digitalio.py", line 223, in direction
self._pin.init(mode=Pin.IN)
File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/microcontroller/bcm283x/pin.py", line 40, in init
GPIO.setup(self.id, GPIO.IN)
RuntimeError: Cannot determine SOC peripheral base address
```

I read that the Raspberry Pi 5 has some incompatibilities with the GPIOs. Does anyone have a solution for this? Or should I wait for an update?

Thank you in advance!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the traceback using the NeoPixel example with board.D21 on a Raspberry Pi 5, then inspect adafruit_blinka/microcontroller/bcm283x/pin.py at the GPIO.setup call. Check the relevant digitalio and NeoPixel initialization path. Done means the NeoPixel can initialize on Raspberry Pi 5 without the peripheral-base-address error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, raspberry-pi
Domain
embedded-iot
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.