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
Should FASTLED_UNUSABLE_PIN_MASK reserve VDD_SPI on ESP32-C5 (GPIO19) and ESP32-C6 (GPIO27)? #4724
#4718 originally added the VDD_SPI pads to the library-wide FASTLED_UNUSABLE_PIN_MASK in src/platforms/esp/32/core/fastpin_esp32.h:
ESP32-C5 GPIO19: VDD_SPI, the flash power supply by default. Source: ESP32-C5 datasheet, pin overview (FastLED/datasheets espressif/soc/esp32c5/datasheet.pdf).
ESP32-C6 GPIO27: VDD_SPI, the flash power supply by default. Source: ESP32-C6 datasheet, "Restrictions for GPIOs" (FastLED/datasheets espressif/soc/esp32c6/datasheet.pdf).
Driving either pad as a GPIO output can brown out the flash and reset or lock up the chip. There is a precedent: the existing ESP32-C3 entry already reserves its VDD_SPI pad (GPIO11).
That change was taken out of #4718 because it is a library behaviour change. With the pin in the mask, _ESPPIN<P>::validpin() fails, so any sketch that uses FastPin<19> on a C5 or FastPin<27> on a C6 stops compiling or working. That includes boards or modules where VDD_SPI has been reconfigured as a normal GPIO through eFuse or an external flash supply. Neither pad is broken out on the common DevKit modules, but we have not audited third-party boards.
Current state
#4718 keeps AutoResearch's pin discovery off these pads at runtime only (autoResearchMemoryPinMask() in examples/AutoResearch/AutoResearchRemote.cpp). The library is unchanged.
Options
Add both pins to the mask, like C3 GPIO11 (safer default; breaks FastPin<19>/<27> users).
Leave the mask as it is and document the hazard (current state).
Reserve them only when the VDD_SPI eFuse/config says the pad powers flash (needs a runtime check, which the compile-time mask can't express).
If you pick option 1, update EXPECTED_LIBRARY_MASK in ci/tests/test_autoresearch_pin_discovery_safety.py and drop the AutoResearch-side duplicates.
Activity
fix(autoresearch): keep VDD_SPI skips AutoResearch-side, skip non-GPI…
refactor(pins): move pin-discovery skip rules into the core (#4718 fo…