Skip to content
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

Raspberry pi 5 Cannot determine SOC peripheral base address #164

Open
davidpazo opened this issue Jul 19, 2024 · 1 comment
Open

Raspberry pi 5 Cannot determine SOC peripheral base address #164

davidpazo opened this issue Jul 19, 2024 · 1 comment

Comments

@davidpazo
Copy link

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 <module>
    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!

@offbrandmark
Copy link

Yeah the Pi 5 has some hardware changes that makes it have incompatibilities. Check out this issue from the rpi_ws281x library, this includes their development of raspberry pi 5 using the LEDs. No release from them but some users have made some fixes.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants