Skip to content

fix(autoresearch): fl:: namespace on ARMHardwareSPIOutputDMA in SPI harness - #3537

Merged
zackees merged 1 commit into
masterfrom
fix/autoresearch-spi-dma-namespace
Jul 1, 2026
Merged

zackees merged 1 commit into
masterfrom
fix/autoresearch-spi-dma-namespace

Conversation

@zackees

@zackees zackees commented Jul 1, 2026 •

Copy link
Copy Markdown
Member

examples/AutoResearch/AutoResearchSpiDma.h declared HarnessDriver as bare ARMHardwareSPIOutputDMA<...> without the fl:: prefix. Template lives in namespace fl; harness is in namespace 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:

error: 'ARMHardwareSPIOutputDMA' does not name a type
error: 'HarnessDriver' does not name a type
(+ 7 more cascade errors)

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

  • Refactor
    • Updated the hardware SPI DMA driver reference used by the AutoResearch harness to use the correct namespace qualification.
    • This change helps keep the harness aligned with the current library structure and reduces the risk of integration issues.

…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]>
@coderabbitai

coderabbitai Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8a853170-0021-4c87-abd6-abd8515e12eb

📥 Commits

Reviewing files that changed from the base of the PR and between 3837c78 and d43f88e.

📒 Files selected for processing (1)
  • examples/AutoResearch/AutoResearchSpiDma.h

📝 Walkthrough

Walkthrough

This change updates a single type alias in an example header file, adding the fl:: namespace qualifier to ARMHardwareSPIOutputDMA used in the HarnessDriver type alias.

Changes

HarnessDriver Alias Namespace Fix

Layer / File(s) Summary
Namespace-qualify HarnessDriver alias
examples/AutoResearch/AutoResearchSpiDma.h
HarnessDriver alias updated to reference fl::ARMHardwareSPIOutputDMA<...> instead of the unqualified ARMHardwareSPIOutputDMA<...>.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related issues

Possibly related PRs

  • FastLED/FastLED#3503: Introduced the HarnessDriver alias for the LPC845 SPI+DMA AutoResearch harness that this PR now namespace-qualifies.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: qualifying ARMHardwareSPIOutputDMA with fl:: in the AutoResearch SPI harness.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/autoresearch-spi-dma-namespace

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zackees
zackees merged commit d6e1daf into master Jul 1, 2026
7 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jul 1, 2026
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jul 1, 2026
@zackees
zackees deleted the fix/autoresearch-spi-dma-namespace branch August 21, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant