Repository navigation
fix(examples): ESP32 compile matrix — S2 dram0 overflow + H2 WiFi-less build (#3576 Phase 4) - #3583
Conversation
…s build (#3576 Phase 4) Compile-matrix sweep of AutoResearch across IDF 4.4 / 5.5 / 6.0 and the ESP32 chip family surfaced two failures; both fixed here. - esp32s2: .dram0.bss overflowed by 3696 bytes. The RPC benchmark handler kept two static 8 KB buffers in bss; they are now heap-allocated fl::vector storage sized on first use (frees 16 KB of bss on every platform). - esp32h2: AutoResearchNet/AutoResearchOta gated their ESP-IDF WiFi implementations on the family macro FL_IS_ESP32, but ESP32-H2 has no WiFi silicon and esp_wifi.h does not even preprocess there (CONFIG_ESP_WIFI_* absent from its sdkconfig). The guard is now FL_IS_ESP32 && SOC_WIFI_SUPPORTED so WiFi-less family members take the existing no-op stub branch. Matrix results (AutoResearch, --no-filter): - esp32dev on IDF 4.4 (platform v4.4.0), IDF 5.5 (pioarduino 55.x), IDF 6.0 (pioarduino prep_IDF6): PASS - esp32s3 / esp32c6 / esp32p4 / esp32c3: PASS (unchanged) - esp32s2 / esp32h2: FAIL -> PASS with this commit Host: 345/345, lint clean. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThis PR tightens ESP32 compilation guards in the AutoResearch networking and OTA example files to require SOC_WIFI_SUPPORTED in addition to FL_IS_ESP32, falling back to stub implementations otherwise. It also replaces fixed-size static buffers with heap-backed fl::vector buffers in the memcpy benchmark probe. ChangesAutoResearch example fixes
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Phase 4 of #3576: verified the AutoResearch harness compiles across the IDF and chip matrix, and fixed the two failures found.
Matrix (AutoResearch,
--no-filter)Fixes
.dram0.bssoverflowed by 3696 bytes — the RPC benchmark handler held two static 8 KB buffers; now heap-allocated on first use (frees 16 KB of bss everywhere).FL_IS_ESP32, but H2 has no WiFi silicon andesp_wifi.hfails to preprocess there. Guard is nowFL_IS_ESP32 && SOC_WIFI_SUPPORTED, routing WiFi-less chips to the existing stub branch.Host: 345/345; lint clean.
Refs #3576.
🤖 Generated with Claude Code
Summary by CodeRabbit