Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Closing under the maintainer requirement that FastLED work with stock, unpatched Arduino/ESP-IDF installations. This PR installs a forked Arduino framework archive at 8ec18a5aee996356e906a759dbcc1e12b46fb0aa; its Serial0 footprint reduction depends on replacing the framework-owned strong startup reference with an optional hook. FastLED alone cannot eliminate that strong reference in stock framework startup. The custom framework dependency and claimed saving will not be merged. The stock-compatible storage, SPI, and lint changes remain separate PRs. |
Summary
Addresses #4892, a child of #4888. Stacked on #4897.
Arduino 3.3.11 framework startup strongly referenced Serial0.setPins, extracting
HardwareSerial even for applications using only native FastLED console output.
The two-file framework change uses a checked weak C startup hook whose strong
provider lives with Serial0. Real application Serial references preserve normal
archive extraction, constructors and original default-pin setup.
Upstream patch: espressif/arduino-esp32#13010
This repo integrates the immutable patched source archive with matching IDF 5.5.5
profiles for esp32dev, esp32s3 and esp32p4. P4 moves from IDF 5.5.1 to 5.5.5;
legacy IDF 4.4 profiles remain on their existing framework. No installed SDK edits,
NO_GLOBAL_SERIAL flags, new public library APIs or new workflow files.
Matched P4 results
Pristine versus patched Arduino 3.3.11, same IDF 5.5.5/GCC 14.2 and FastLED source.
All six controls built from public immutable framework archives.
bash bloatconfirms no sized Serial0/HardwareSerial owners in native controlsand preserved real Serial0/startup-provider ownership in the explicit control.
Residual String through chip debug reporting and Stream through AutoResearch OTA
filesystem are independent owners, not claimed eliminated.
Physical runtime and test evidence
(+612 B); zero per-cycle retention and valid integrity in all five cycles
before and after. Build flash -11,472 B, static RAM -368 B.
zero per-cycle retention in all five cycles. Static RAM unchanged; build
flash +28 B (attributed flash +26 B).
bash autoresearch esp32dev --serial-startuptests default pins,explicit GPIO16/17 changes and restoration, both initialization orders,
exact alternating output, native-only symbol ownership and warm heap.
The ELF provenance/path/hash gate binds bloat evidence to deployed firmware.
output reordering/unexpected Arduino record regressions RED → GREEN.
bash lintpassed.See docs/ESP32_FRAMEWORK_SERIAL.md for full totals, separate accounting methods,
scope and reproducible hardware commands. Physical native USB runtime/heap and
ownership/reconnect matrix remain #4893; P4 compile/link is not physical USB
evidence. Full stack/master
ci-fullremains required before merging.