Skip to content

diag(objectfled): attach register snapshots - #3374

Merged
zackees merged 1 commit into
teensy-fixfrom
codex/objectfled-register-snapshots
Jun 25, 2026
Merged

zackees merged 1 commit into
teensy-fixfrom
codex/objectfled-register-snapshots

Conversation

@zackees

@zackees zackees commented Jun 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Add Teensy 4.x ObjectFLED register snapshot diagnostics gated by FASTLED_OBJECTFLED_DIAGNOSTICS.
  • Capture ObjectFLED state at before/after begin, before/after show, after FastLED.wait(), after channel clear, and destruction hooks where reached.
  • Attach the snapshot bundle to AutoResearch runSingleTest JSON-RPC responses for OBJECT_FLED and display it on the host.
  • Enable the diagnostic define for staged AutoResearch fbuild projects.
  • Tighten the scoped AutoResearch runtime-output lint for future fl::serialPrint*-style helpers.

Validation

  • uv run --no-sync ruff check ci/autoresearch/context.py ci/autoresearch/phases.py ci/autoresearch/staging.py ci/tests/test_autoresearch_staging.py
  • uv run --no-sync ruff format --check ci/autoresearch/context.py ci/autoresearch/phases.py ci/autoresearch/staging.py ci/tests/test_autoresearch_staging.py
  • uv run --no-sync pytest ci/tests/test_autoresearch_staging.py ci/tests/test_autoresearch_phases.py -q -> 71 passed
  • soldr cargo fmt --manifest-path ci/lint_cpp_rs/Cargo.toml -- --check
  • soldr cargo check --manifest-path ci/lint_cpp_rs/Cargo.toml --target x86_64-unknown-linux-gnu --tests -> passed with existing warnings
  • git diff --check

Hardware

Canonical command first stopped before deploy at the known local Rust lint MSVC-target failure:

bash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120

Follow-up through AutoResearch/fbuild, skipping only the broken local lint gate:

bash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120 --skip-lint

Result:

  • fbuild deploy succeeded on teensy41 @ COM20.
  • Serial backend was FbuildSerialAdapter; no manual serial utility was used.
  • GPIO pre-test passed for TX 22 -> RX 8.
  • setPins echoed txPin=22, rxPin=8.
  • OBJECT_FLED failed honestly as class=zero_capture.
  • Response included objectFledDiagnostics with eventCount=6, overflow=0, format objectfled-register-snapshot-v1.
  • Captured stages included beforeBegin, afterBegin, beforeShow, afterShowReturn, afterFastLedWait, and afterFastLedClear.
  • Snapshot includes IOMUXC_GPR_GPR26..29, pin mux/pad/GPIO routing, TMR4 ch0-2 state, XBAR state, DMAMUX config, DMA status/request bits, and TCD state for dma1, dma2, dma3, and dma2next.

Closes no issue; advances #3359 S3.

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8e78973f-8be5-49f6-8b27-2faa89a21a6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/objectfled-register-snapshots

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.

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Jun 25, 2026
@zackees
zackees merged commit 804eb8d into teensy-fix Jun 25, 2026
1 check passed
@zackees
zackees deleted the codex/objectfled-register-snapshots branch June 25, 2026 06:37
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Jun 25, 2026
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