Repository navigation
Description
Summary
CONFIG_PARLIO_TX_ISR_HANDLER_IN_IRAM=1 and CONFIG_PARLIO_TX_ISR_CACHE_SAFE=1 are required for correct PARLIO TX ISR behavior — without them the ISR sits in flash, takes cache-miss stalls during execution, and violates LED protocol timing. The driver source explicitly #warnings when the flag is missing (src/platforms/esp/32/drivers/parlio/parlio_peripheral_esp.cpp.hpp:46-48).
Today these flags live only in the root platformio.ini under [env:esp32c6] (lines 76-77). They are not present in ci/boards.py for any board. CI builds get them by accident, via the root-merge in PioCompiler._init_platformio_build (ci/compiler/pio.py:155) — and only for esp32c6. Every other PARLIO-capable board compiles without them today.
Affected boards in ci/boards.py
PARLIO support is gated on SOC_PARLIO_SUPPORTED (src/platforms/esp/32/feature_flags/enabled.h:135). Boards in ci/boards.py that should set the flags:
esp32c6(ESP32_C6_DEVKITC_1, boards.py:801) — currently missing in boards.py, masked by root mergeesp32s3(ESP32_S3_DEVKITC_1, boards.py:815) — missing, no mask, compiles with#warningtodayesp32h2(ESP32_H2, boards.py:843) — missingesp32p4(ESP32_P4, boards.py:850) — missingesp32c5(boards.py:795) — missing- Anywhere else
SOC_PARLIO_SUPPORTEDis true
Why this matters now
Discovered while auditing the root platformio.ini → CI merge coupling (see parent issue / discussion of PR #2794 / #2664 / #3268). The planned cleanup is to sever root platformio.ini from the CI compile path entirely and make ci/boards.py the sole source of truth. If we do that without porting these PARLIO flags first, every esp32c6 build silently loses ISR-in-IRAM placement and becomes a runtime-timing regression with only a compile-time #warning as signal.
This issue should land before the root-merge sever, so the migration is safe.
Proposed fix
Add to build_flags on every PARLIO-capable board definition in ci/boards.py:
"-DCONFIG_PARLIO_TX_ISR_HANDLER_IN_IRAM=1",
"-DCONFIG_PARLIO_TX_ISR_CACHE_SAFE=1",Preferred: extract a shared ESP32_PARLIO_BUILD_FLAGS constant (or a small mixin / helper) so the next PARLIO-capable board added doesn't quietly miss them. Alternative: emit them unconditionally from Board.to_platformio_ini() when the platform is ESP32 and SOC_PARLIO_SUPPORTED would be true — but the macro is per-target, so a board-side allowlist is simpler than a platform-side derivation.
Verification
- After porting, remove the duplicate lines from
[env:esp32c6]in rootplatformio.inito confirm the flags now come fromboards.py. - Compile each PARLIO board and confirm the
#warninginparlio_peripheral_esp.cpp.hppno longer fires. - Optional: add a
static_assertnext to the#warningso missing flags are a hard error on PARLIO-supporting targets (ratchet from warn → error).
Labels / refs
- area: build, area: esp32, parlio
- Blocks: parent root-
platformio.inidecoupling work (to be filed) - Discovered via: PR fix(ci/size): esp32dev overrides generic-esp debug flags (restore 330KB ceiling) #3268 follow-up audit
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 19, 2026
Cross-link: this is Phase 1 / a blocker for #3274 (sever root
platformio.inifrom CI compile path). Porting the PARLIO IRAM flags intoci/boards.pyhere removes one of the two gaps that the root-merge is invisibly masking today.