Repository navigation
Description
Context
Follow-up to #4887 and the ESP32 memory/dependency investigation. Native console output now has an optional weak application writer, demonstrating how FastLED can integrate with an already linked Arduino component without making that component mandatory.
Further research identified embedded storage and SPI integration opportunities, a transitive header enforcement gap, an independent P4 framework startup root, and remaining physical USB validation. These are separate tasks with different evidence requirements; a weak symbol alone is not a complete fix for all of them.
Proposal
Track the focused work below as native GitHub sub-issues. Preserve tested behavior while making Arduino integration optional and measuring actual retention.
Acceptance criteria
- Each implementation child has focused RED -> GREEN evidence, a real production use, and relevant link-map or hardware verification.
- Measure comparable flash, static RAM and relevant runtime heap; do not infer savings from header removal.
- Preserve normal Arduino application APIs and explicit component ownership.
- Physical USB acceptance remains separate from compile and UART evidence.
- Complete all attached children or document an explicit maintainer-approved scope change before closing this tracker.
Decisions
- Scope: ESP32 first; preserve shared ESP8266 filesystem behavior when touched. Cross-platform expansion is separate.
- Optional means an explicitly linked provider/component, not merely an installed header. Weak undefined references do not extract providers from static archives.
- Keep preprocessor selection at the backend boundary; avoid guessed Arduino class layouts, mangled method names or automatic hardware takeover.
- Keep public storage terminology generic (
getEmbeddedFs), preserve separate storage translation units, and retain native fallbacks where supported. - Integrate checks into existing lint/test commands; add no GitHub Actions workflows.
- Existing RMT network weak-link detection is prior art, not new unfinished work (perf(esp32dev): Wi-Fi probe keeps libnet80211 live (+1.3 KB RAM) despite weak linking #4791). fix(esp32): remove Arduino console retention with native SDK backends #4887 remains the console implementation PR, not a substitute for these children.
Related issues
- fix(esp32): remove Arduino console retention with native SDK backends #4887: native console / optional weak writer and current USB migration.
- feat: add a LittleFS FsImpl backend — on-chip flash storage is unreachable today #3984 and design: expose on-chip flash storage generically, not as make_littlefs_filesystem #4007: implemented embedded storage and generic naming/translation-unit design that must be preserved.
Work items
- feat(esp32): make Arduino LittleFS integration optional through a weak provider boundary #4889: feat(esp32): make Arduino LittleFS integration optional through a weak provider boundary
- feat(esp32): support an optional weak Arduino SPI transaction provider #4890: feat(esp32): support an optional weak Arduino SPI transaction provider
- fix(lint): detect transitive Arduino.h dependencies in native ESP implementations #4891: fix(lint): detect transitive Arduino.h dependencies in native ESP implementations
- perf(esp32p4): remove unnecessary Serial0 retention from Arduino framework startup #4892: perf(esp32p4): remove unnecessary Serial0 retention from Arduino framework startup
- test(esp32): validate native USB console ownership and reconnect behavior on hardware #4893: test(esp32): validate native USB console ownership and reconnect behavior on hardware
These are attached as native GitHub sub-issues.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 22, 2026
Sequential progress: #4889 is implemented/published in #4894, #4890 in #4896, and #4891 now in #4897 (full CI requested). Stack/master integration remains pending, so this tracker stays open.
#4891 adds the transitive native ESP32 dependency check to existing lint. Selectively restoring the previous FastLED.h import was caught by normal lint, then the fix was restored and lint passed. 26 focused tests, 171 Rust tests (2 ignored), native debug326units/95examples, real SDK probes and physical classic RMT3scenarios all pass. Matched bloat shows zero flash/static change for noSPI and native HOST2 APA102. Details: #4891 and its PR.
Next child: #4892, the independent P4 framework startup Serial0 root. Physical USB matrix remains #4893; no physical USB completion is claimed from compile/UART evidence.
zackees commentedon Oct 23, 2026
All children resolved: #4889, #4890, #4891, #4892 (not planned, upstream), #4893 (via #4902, #4904, #4906, #4908, #4909).