-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
RP2 Port Uses RP2040 Headers for RP2350 Builds #10181
Comments
Thank you for finding this! Another related thing to watch out for: This might get fixed soon: raspberrypi/pico-sdk#2364 and earlephilhower/arduino-pico#2878. |
Thanks for pointing that out. Also related is #10141. |
@jepler notes: ...a comprehensive fix (would probably be to add the correct -isystem or -I compiler flags so that the header can be included as hardware/platform_defs.h etc. Agree completely. |
This lets each MCU type get the correct definitions. It also simplifies paths at include sites. Closes: adafruit#10181
This lets each MCU type get the correct definitions. It also simplifies paths at include sites. Closes: adafruit#10181
The Pico SDK has headers common to the RP2040 and RP2350 as well as headers specific to these processors. In some cases, CP RP2 port code includes RP2040-specific headers unconditionally. For example,
common_hal/rp2pio/StateMachine.c
includedsrc/rp2040/hardware_regs/include/hardware/platform_defs.h
causing it to miss the third PIO available on the RP2350.RP2 port code needs to be examined for other instances of this problem.
The text was updated successfully, but these errors were encountered: