Repository navigation
fix(build): add fast_isr.S to library.json srcFilter so ESP32 RISC-V PIO builds link - #2502
Conversation
…lds link The srcFilter overrides PIO's default file selection. Without an explicit entry, fast_isr.S is not assembled, which leaves gpio_fast_edge_isr undefined and breaks the link for ESP32-P4 (and any other RISC-V variant compiling gpio_isr_rx_mcpwm.cpp.hpp). Symptom on a clean PlatformIO build for esp32p4 (Blink/AutoResearch): ld: undefined reference to `gpio_fast_edge_isr' collect2.exe: error: ld returned 1 exit status The handler is declared in gpio_isr_rx_mcpwm.cpp.hpp:69 under `#ifdef __riscv` and implemented in fast_isr.S. The filter already has an explicit entry for the helix MP3 ARM assembly file (libhelix_mp3/real/arm/*.S); this adds the same kind of entry for the new GPIO ISR assembly. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe PR extends the FastLED ChangesAssembly Source Build Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
Summary
ESP32-P4 (and other ESP32 RISC-V variants compiling
gpio_isr_rx_mcpwm.cpp.hpp) currently fail to link via PlatformIO on a clean checkout:The handler is declared in
src/platforms/esp/32/drivers/gpio_isr_rx/gpio_isr_rx_mcpwm.cpp.hpp:69under#ifdef __riscvand implemented infast_isr.S. Thelibrary.jsonsrcFilteroverrides PIO's default file selection, and without an explicit entry the.Sis not assembled.The fix mirrors the existing pattern for
libhelix_mp3/real/arm/*.S— a one-line srcFilter addition.Test plan
bash compile esp32p4(or any RISC-V variant) succeeds on a clean checkout#ifdef __riscvand won't be referenced)Context
Discovered while attempting to reproduce #2493 on an attached ESP32-P4 — the build couldn't even link until this entry was added. Filing as a standalone fix; the #2493 timing follow-up is a separate PR.
🤖 Generated with Claude Code
Summary by CodeRabbit