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

🪲[BUG] GPIOs > 32 not working #133

Open
arturo182 opened this issue Aug 27, 2024 · 1 comment · May be fixed by #157
Open

🪲[BUG] GPIOs > 32 not working #133

arturo182 opened this issue Aug 27, 2024 · 1 comment · May be fixed by #157
Labels
bug Something isn't working

Comments

@arturo182
Copy link

As per 11.1.1 of the RP2350 datasheet, a new register GPIOBASE is added to specify which pin the PIO treats as GPIO 0:

image

For RP2350 the valid values are 0 and 16, indicating the PIO instance has access to pins 0-31, or 16-47 respectively:
image

The function to set this register can be found here:
https://github.com/raspberrypi/pico-sdk/blob/master/src/rp2_common/hardware_pio/include/hardware/pio.h#L788

@arturo182 arturo182 added the bug Something isn't working label Aug 27, 2024
@arturo182
Copy link
Author

Just double-checked for sanity's sake and my code works on pins 30-31 with no issues, however, it doesn't on 38-39 (as expected).

jepler added a commit to adafruit/Pico-PIO-USB that referenced this issue Dec 20, 2024
@jepler jepler linked a pull request Dec 20, 2024 that will close this issue
jepler added a commit to adafruit/Pico-PIO-USB that referenced this issue Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant