Repository navigation
fix(autoresearch): fl:: namespace on ARMHardwareSPIOutputDMA in SPI harness - #3537
Merged
Merged
Conversation
…arness
`examples/AutoResearch/AutoResearchSpiDma.h` line 88 declares
`HarnessDriver` as `ARMHardwareSPIOutputDMA<...>` without the `fl::`
namespace prefix. The template lives in `namespace fl` inside
`src/platforms/arm/lpc/spi_arm_lpc_dma.h`, and the harness itself is in
`namespace autoresearch { namespace dma_spi { ... } }` — so the bare
name never resolves.
Under #3517 Phase B silicon-validation attempt (build LPC845
AutoResearch with `-DFASTLED_LPC_SPI_DMA=1`), the compile fails with:
src/sketch/AutoResearchSpiDma.h:88: error: 'ARMHardwareSPIOutputDMA' does not name a type
src/sketch/AutoResearchSpiDma.h:101: error: 'HarnessDriver' does not name a type
src/sketch/AutoResearchSpiDma.h:128: error: 'HarnessDriver' was not declared in this scope
(... plus 7 more cascade errors)
After this fix the LPC845 AutoResearch build with
`-DFASTLED_LPC_SPI_DMA=1` succeeds and links at 56.43 KB / 64 KB
(88.2%). Real silicon validation of #3517 Phase B.1 is now unblocked —
just requires a working deploy pipeline (env-blocked per #3517
discussion of the pyocd HIDAPI hang on LPC-Link2 CMSIS-DAP v1.0.7
firmware).
Bug was masked until now because #3527 (Phase A.2 addLeds routing)
was landing at the same time and everyone's builds hit the abandoned
legacy-header errors first — this SPI harness compile path was never
reached.
## Verification
- LPC845 with `-DFASTLED_LPC_SPI_DMA=1`: 56.43 KB / 64 KB, links clean
- Grep confirms no other bare-namespace uses in the harness files
Refs: #3517 Phase B, #3454 (SPI DMA driver PR).
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)
📝 WalkthroughWalkthroughThis change updates a single type alias in an example header file, adding the ChangesHarnessDriver Alias Namespace Fix
Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related issues
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
55 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
examples/AutoResearch/AutoResearchSpiDma.hdeclaredHarnessDriveras bareARMHardwareSPIOutputDMA<...>without thefl::prefix. Template lives innamespace fl; harness is innamespace autoresearch::dma_spi— bare name never resolved.Under #3517 Phase B silicon-validation build (
bash compile lpc845 --examples AutoResearch --defines FASTLED_LPC_SPI_DMA), fails with:After this fix: builds at 56.43 KB / 64 KB (88.2%). Silicon validation of #3517 Phase B.1 is now unblocked at the code level.
Bug was masked because #3527 (Phase A.2) landed at the same time and everyone's builds hit legacy-header errors first — this SPI harness compile path was never reached.
Refs: #3517 Phase B, #3454.
Summary by CodeRabbit