You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
broken build: rp2040 — pio_program::used_gpio_ranges gated on wrong macro (PICO_SDK_VERSION_MAJOR instead of PICO_PIO_VERSION) #2792
src/platforms/arm/rp/rpcommon/pio_gen.h:57:5: error:
'pio_program' has no non-static data member named 'used_gpio_ranges'
(build_rp2350.yml and build_rp2350B.yml are green — the bug is RP2040-specific.)
Root cause
In src/platforms/arm/rp/rpcommon/pio_gen.h, the pio_program initializer guards both pio_version and used_gpio_ranges behind a single check (see issue #2727 follow-up):
But in the arduino-pico v4.5.3 bundled pico-sdk 2.1.2, used_gpio_ranges is conditional on a different macro — PICO_PIO_VERSION > 0 — which is set per-chip, not per-SDK:
PICO_PIO_VERSION is 0 on RP2040 and 1 on RP2350. So on RP2040 the field is genuinely absent at compile time, even though the SDK is 2.x. RP2350 builds happen to work because the field is present there.
Fix
Split the guard so each field is gated by its own correct condition:
Activity
fix(rp2040): gate pio_program::used_gpio_ranges on PICO_PIO_VERSION, …