Repository navigation
Closed
Description
PurposeThis is the execution tracker for bringing up all Teensy LED drivers, with ObjectFLED as the current active driver task. Raw research, datasheet links, PJRC/forum references, errata notes, and deep technical evidence belong in #3353. Execution status, checked tasks, run summaries, and acceptance decisions belong here.## AI Task-Following ContractAgents must use this as a burn-down board.- Start at the first unchecked sub-issue whose dependencies are satisfied.- Claim exactly one unchecked leaf task at a time in your working plan.- Work only on teensy-fix or a PR branch targeting teensy-fix unless explicitly redirected.- Do not check a box unless it is proven by code review, tests, or canonical AutoResearch output.- For code changes, open a PR against teensy-fix, merge it, then update this issue with the PR, branch/SHA, commands, and result.- Put raw/new technical research in #3353 first, then summarize here only if it changes execution order.- If a task is split out, add the new issue link directly under the owning sub-issue checkbox.## Current Hardware WiringCurrent user-reported soldered loopback hypothesis, as of June 24, 2026:- TX 22 -> RX 8- User reaffirmed on June 24, 2026: TX/RX pair is 22 and 8; interpret this as TX 22 -> RX 8 for the current soldered loopback unless corrected.- Treat older TX 8 -> RX 9 notes as historical unless the user explicitly says the board has been rewired again.- If a run uses any other pair, the run note must say why.Current canonical ObjectFLED command:bashbash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120If the board is Teensy 4.0, use teensy40. If a serial port must be fixed, pass it through AutoResearch only:bashbash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --port COMx --timeout 120Do not open the COM port elsewhere.## Non-Negotiable AutoResearch Mandates- [ ] Every hardware validation command uses bash autoresearch, not bash compile.- [ ] No validation command uses --platformio, --backend platformio, raw pio run, or root PlatformIO fallback behavior.- [x] --use-root-platformio-ini is hard-failed for Teensy/ObjectFLED/FlexIO acceptance. Evidence: #3360.- [ ] AutoResearch owns build, upload, serial discovery, serial monitor, JSON-RPC, timeout handling, and failure classification.- [ ] The fbuild-backed AutoResearch serial interface is the only serial owner during acceptance.- [ ] No Arduino Serial Monitor, PuTTY, screen, minicom, pyserial script, serial MCP, or other port utility is open during acceptance.- [x] ci/autoresearch/test_flexio_rx_objectfled.py and flexioObjectFledTest are diagnostics only, never acceptance. Evidence: #3360.- [x] No PASS is accepted unless the result includes explicit test schema, selected driver, requested pins, actual pins, capture backend, nonzero capture evidence, and totalTests > 0 / passedTests. Evidence: #3362, #3363, #3364, #3365.- [ ] Serial cutoff without TEST_COMPLETED_EXIT_OK or TEST_COMPLETED_EXIT_ERROR is treated as a crash until proven otherwise.- [ ] Pin remaps are never hidden: wrapper pins, firmware pins, and result pins must agree.## Sub-Issue Burn-Down Board### Sub-Issue S0: Guardrails And Environment LockdownDependency: none.- [x] Confirm current local/remote work target is teensy-fix. Evidence: a7182794ad on teensy-fix, PR #3361 merged.- [x] Confirm current hardware note is TX 22 -> RX 8 before the next run. Evidence: #3359 (comment) [x] Confirm no external serial monitor or raw serial utility owns the port. Evidence: #3359 (comment) [x] Run the canonical command only through AutoResearch. Evidence: #3359 (comment) [x] Record branch, SHA, board, command, port selected by AutoResearch, fbuild evidence, requested pins, actual pins, selected driver, capture backend, and result. Evidence: #3359 (comment) [x] Preserve posted canonical run note evidence. Evidence: #3359 (comment) [x] Remove or hard-fail known bypasses for Teensy acceptance. Evidence: #3360.Definition of done:- [x] This issue has a current run note using TX 22 -> RX 8 through canonical AutoResearch. Evidence: #3359 (comment) [x] No bypass path is used or trusted for acceptance. Evidence: #3360 and https://github.com/FastLED/FastLED/issues/3359#issuecomment-4794116475.### Sub-Issue S1: Make AutoResearch Unable To False-PASSDependency: S0.- [x] Require runSingleTest / runParallelTest responses to include explicit test result fields before PASS is possible. Evidence: #3362.- [x] Fail incomplete, unknown, malformed, or non-dict test responses. Evidence: #3362.- [x] Prevent setup RPC OK responses from satisfying final PASS. Evidence: #3362.- [x] Require totalTests > 0 and passedTests to match the expected pass count. Evidence: #3362.- [x] Require selected driver in the result. Evidence: #3362.- [x] Require requested TX/RX pins and actual TX/RX pins in the result. Evidence: #3363.- [x] Require capture backend in the result. Evidence: #3364.- [x] Require nonzero capture evidence for positive hardware acceptance where capture is expected. Evidence: #3365.- [x] Return enough failure detail to distinguish timeout, crash, decode mismatch, zero capture, malformed response, and electrical issue. Evidence: #3366.Definition of done:- [x] Deliberately malformed Teensy response fails. Evidence: #3362 unit coverage.- [x] Response missing actual pins fails. Evidence: #3363 unit coverage.- [x] Response missing capture evidence fails. Evidence: #3365 unit coverage.- [x] Legitimate PASS includes driver, pins, backend, test counts, and capture evidence. Evidence: #3365 valid PASS fixtures and host acceptance validation.### Sub-Issue S2: Pin Selection And Serial Ownership IntegrityDependency: S1.- [x] Remove or synchronize host-vs-firmware pin default divergence. Evidence: #3367 (1b251243f53b6201e3bf874da18379f6adfeedf0).- [x] Always send setPins for the final effective TX/RX pair, including fallback/default cases. Evidence: #3368 (84af9e00a50fc8541420f75a09cc67a806682a34).- [x] Remove hidden FlexIO TX pin substitution or make it visible in wrapper logs, firmware config, and result fields. Evidence: #3369 (20394460bfa6e20890a002d71e9bbe2b7bfbecf0).- [x] Ensure wrapper logs, firmware state, and returned result all agree on actual TX/RX pins. Evidence: #3370 (8486b901853a6f9c47c8b3804894e01f36838cac).- [x] Ensure stale .pio firmware upload cannot occur before canonical fbuild AutoResearch deploy. Evidence: #3371 (8c1a0d4f) and #3373 (2b1a95e2e4).- [x] Map Teensy SPI flag selection to the actual registered driver name (SPI_UNIFIED) if SPI is included in the all-driver bring-up. Evidence: #3373 (2b1a95e2e4).Definition of done:- [x] Running with omitted pins does not silently test different host and firmware pin pairs. Evidence: #3367 and #3368.- [x] Running explicit --tx-pin 22 --rx-pin 8 reports actual pins 22 and 8 from firmware. Evidence: #3370 and #3373.- [x] AutoResearch logs show fbuild and synthesized .build/pio/<board>/platformio.ini, not root platformio.ini. Evidence: #3371 and #3373.### Sub-Issue S3: ObjectFLED Register Snapshot DiagnosticsDependency: S1.- [x] Snapshot ObjectFLED hardware state before begin(). Evidence: #3374 (804eb8db07fcbe8a90f96c7499d035e55d15c90b).- [x] Snapshot after begin(). Evidence: #3374.- [x] Snapshot immediately before show(). Evidence: #3374.- [x] Snapshot immediately after show() returns. Evidence: #3374.- [x] Snapshot after drain/wait. Evidence: #3374.- [x] Snapshot after destruction/rebuild where applicable. Evidence: #3374 implements beforeDestroy / afterDestroy hooks.- [x] Include IOMUXC_GPR_GPR26..29. Evidence: #3374.- [x] Include selected pin mux and pad registers. Evidence: #3374.- [x] Include selected pin GPIO port/bit and standard-vs-fast routing. Evidence: #3374.- [x] Include TMR4 channel 0-2 control/count/compare state. Evidence: #3374.- [x] Include XBAR select/control state for ObjectFLED outputs. Evidence: #3374.- [x] Include DMAMUX channel config for ObjectFLED DMA channels. Evidence: #3374.- [x] Include DMA error/status/request state. Evidence: #3374.- [x] Include ObjectFLED DMA TCD state for dma1, dma2, dma3, and dma2next. Evidence: #3374.Definition of done:- [x] Failing ObjectFLED run can attach a register snapshot bundle. Evidence: #3374 AutoResearch run returned objectFledDiagnostics with eventCount=6, overflow=0, and format=objectfled-register-snapshot-v1.- [x] Snapshot shows whether pin mux, GPR routing, TMR4, XBAR, DMAMUX, and DMA state are plausible. Evidence: #3374 run snapshots.### Sub-Issue S4: Fix ObjectFLED GPIO Mux ReclaimDependency: S3 preferred, S1 required.- [x] In ObjectFLED begin(), explicitly set each selected pin to GPIO mux mode before DMA output. Evidence: #3375 (52469cf9704e2d520ca51611105fb0371994a133).- [x] Preserve intended pad drive/speed/slew configuration after mux reclaim. Evidence: #3375.- [x] Add a repro that contaminates TX with analogWrite() or another peripheral before ObjectFLED starts. Evidence: #3375 adds --contaminate-tx-mux and JSON-RPC fields.- [x] Run canonical AutoResearch on TX 22 -> RX 8 after mux contamination. Evidence: #3375 run note.- [ ] If requested, repeat historical TX 8 -> RX 9 for regression comparison only.- [x] Record before/after pin mux register values in the run note. Evidence: #3375 contaminated run.Definition of done:- [ ] ObjectFLED works after prior PWM/analogWrite remux on selected TX pin.- [x] Register snapshot proves TX pin mux is GPIO before ObjectFLED DMA starts. Evidence: #3375 contaminated run.- [ ] AutoResearch PASS uses only canonical bash autoresearch and includes actual pins plus capture evidence.### Sub-Issue S5: Fix ObjectFLED Busy / Drain / Latch SemanticsDependency: S1.- [x] Expose real ObjectFLED busy state through IObjectFLEDInstance or equivalent. Evidence: #3376 (147eb8a58cfa408f1a077cbcfd8c4574b75f2580).- [x] Make ChannelEngineObjectFLED::poll() return busy/draining while DMA is active. Evidence: #3376.- [x] Include latch/reset timing in readiness, not just major-loop DMA completion. Evidence: #3376.- [x] Prevent another ObjectFLED timing group from corrupting active global hardware while a previous group is still transmitting or latching. Evidence: #3376.- [x] Confirm FastLED.wait() waits for ObjectFLED completion. Evidence: #3376 AutoResearch run.- [x] Add a two-timing-group test that validates reset gap between groups. Evidence: #3376.Definition of done:- [x] poll() is no longer unconditional READY. Evidence: #3376 unit coverage.- [x] Back-to-back timing groups preserve required reset/latch gap. Evidence: #3376 unit coverage.- [x] AutoResearch or unit diagnostics distinguish active DMA, latch wait, and ready states. Evidence: #3377 (2ded9524096bdbfc038c478480017347cac7d018).### Sub-Issue S6: Fix Legacy ObjectFLED Proxy CorrectnessDependency: S5 preferred, S1 required.- [x] Add a real end-frame flush path for the last/single ObjectFLED group. Evidence: #3378 (8942d88a6fd206273452fcb599357c9cffd76561).- [x] Fix legacy null drawBuffer construction or add raw framebuffer transmit mode. Evidence: #3379 (242b2cdb177f5c0a67abf2c2cd1167fc96777f38).- [x] Fix same-timing multi-strip queue finalization so RectangularDrawBuffer finalizes once per frame/group. Evidence: #3380 (ec34fd51fe91096c16af0e8154cd87bc150cf9c4).- [x] Add regression coverage for one strip. Evidence: #3381 (51adb8e86dfc1d6f6df1d384d85539f82f42bd8d).- [x] Add regression coverage for multiple same-timing strips. Evidence: #3382 (ca117566f7dceee027d5e9b7de593132fdcad8b0).- [x] Add regression coverage for multiple timing groups. Evidence: #3384 (209ab8afbb921f5d2f0e4de416f2fa8cbaa597b4).- [x] Add regression coverage for RGBW 1, 2, 3, and 4 LED legacy cases. Evidence: #3385 (9286ce306c).- [x] Confirm #3340-style crash is covered. Evidence: #3385 AutoResearch run executed RGBW 1, 2, 3, and 4 LED legacy cases through JSON-RPC with structured zero_capture responses, not serial cutoff/crash.Definition of done:- [ ] Single-strip FastLED.show() reaches ObjectFLED flush exactly once.- [ ] Forced flush does not dereference null.- [x] RGBW small-count cases do not overflow. Evidence: #3385 (9286ce306c) rounded ObjectFLED rectangular RGBW frame sizing plus unit coverage for 1, 2, 3, and 4 LED cases.- [ ] Multi-strip same-timing case does not crash.### Sub-Issue S7: Fix Channel RGB / RGBW Raw Data SemanticsDependency: S1.- [x] Stop inferring RGBW from total byte count modulo 3/4. Evidence: #3387 (2e0684e51a).- [x] Carry explicit bytes-per-pixel or pixel-format metadata into ObjectFLED channel grouping. Evidence: #3387 (2e0684e51a).- [x] Stop passing already encoded RGBW bytes through CORDER_RGBW conversion. Evidence: #3387 copies encoded channel data directly into ObjectFLED raw frame buffers.- [x] Add raw RGB passthrough or bypass path for encoded channel data. Evidence: #3387.- [x] Add raw RGBW passthrough or bypass path for encoded channel data. Evidence: #3387.- [x] Add tests for 3, 6, and 9 RGBW pixels. Evidence: #3387 unit coverage.- [x] Add a nonzero-W-channel preservation test. Evidence: #3387 unit coverage.Definition of done:- [x] RGBW lengths divisible by 12 classify correctly. Evidence: #3387 tests 3, 6, and 9 RGBW pixels and ambiguous 12-byte RGB metadata.- [x] Nonzero W bytes survive the ObjectFLED path. Evidence: #3387.- [x] Encoded channel data is not reinterpreted as CRGB input. Evidence: #3387 raw frame-buffer copy path.### Sub-Issue S8: Define And Enforce ObjectFLED Resource OwnershipDependency: S3 preferred.- [x] Decide whether ObjectFLED restores TMR4/XBAR/GPIO/DMAMUX/DMA state or declares exclusive ownership while active. Evidence: #3388 (c3d75a870f) declares exclusive ownership while active and no prior-owner restoration.- [x] Stop clobbering whole XBAR control registers; use masked updates. Evidence: #3388 (c3d75a870f).- [x] Guard against DMA allocation failure before dereferencing TCD pointers. Evidence: #3388 (c3d75a870f).- [ ] Verify dma2next / scatter-gather TCD storage is DMA-visible and cache-coherent.- [x] Add a clear failure path for DMA exhaustion. Evidence: #3388 (c3d75a870f) leaves the instance uninitialized and makes show/busy safe no-ops if TCD allocation is unavailable.- [ ] Document conflicts with OctoWS2811.- [ ] Document conflicts with PWM/analogWrite.- [ ] Document conflicts with WS2812Serial.- [ ] Document conflicts with FlexIO_t4 / FlexIO users.- [ ] Document Audio/logging/ISR-latency risk.Definition of done:- [ ] ObjectFLED no longer silently breaks unrelated XBAR request 95 / output 3 users.- [ ] DMA exhaustion fails cleanly, not as a hardfault.- [ ] Ownership/restoration behavior is explicit in code comments or docs and supported by diagnostics.### Sub-Issue S9: Canonical Hardware Acceptance MatrixDependency: S1, S4, S5. Add S6/S7 dependencies for legacy/RGBW rows.- [ ] Run ObjectFLED current loopback: bash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120.- [ ] Run ObjectFLED after mux contamination on TX pin.- [ ] Run ObjectFLED historical comparison only if requested: --tx-pin 8 --rx-pin 9.- [ ] Run ObjectFLED multi-strip test.- [ ] Run ObjectFLED RGBW test.- [ ] Run all-driver Teensy matrix only after ObjectFLED baseline passes.- [ ] Attach exact command, branch/SHA, selected board, fbuild evidence, serial port, requested pins, actual pins, selected driver, capture backend, and result summary for every run.Definition of done:- [ ] Every acceptance run uses canonical AutoResearch and fbuild-backed serial ownership.- [ ] Every PASS has explicit positive capture evidence.- [ ] Every FAIL is classified as crash, timeout, zero capture, decode mismatch, malformed response, electrical issue, or unsupported conflict.### Sub-Issue S10: LPUART Demotion And All-Driver ScopeDependency: none.- [ ] Keep #3352 as a child/reference issue for LPUART only.- [ ] Do not let #3352 narrow this task to LPUART; this issue tracks all Teensy LED drivers.- [ ] Demote LPUART as non-primary until it has a real hardware-backed driver path and canonical AutoResearch evidence.- [ ] Keep ObjectFLED as the active driver until it has canonical evidence or is explicitly reprioritized.Definition of done:- [ ] LPUART is not treated as the leading/real acceptance path for this effort.- [ ] All-driver bring-up remains represented by this issue.### Sub-Issue S11: Remove Wrappers, Auto-Wrapping, And Cheating PathsDependency: S1/S2 preferred.- [x] Add scoped lint guard for AutoResearch runtime output so direct FL_PRINT*, FL_WARN*, FL_ERROR*, Serial.print*/write/flush, fl::Serial.print*/write/flush, and fl::print*/serial-output helpers cannot be added in runtime/RPC paths without an explicit JSON-RPC transport-boundary suppression. Evidence: #3371, #3373, and #3381.- [ ] Identify every wrapper, auto-wrapper, hidden fallback, implicit pin remap, fake pass path, and diagnostic shortcut involved in Teensy LED validation.- [ ] Remove cheating paths where possible.- [ ] Where removal is temporarily impossible, hard-fail them for acceptance and document diagnostic-only status.- [ ] Ensure no wrapper can silently compile, upload, serial-monitor, pin-remap, or pass outside AutoResearch ownership.Definition of done:- [ ] Acceptance has one canonical path: bash autoresearch using fbuild and AutoResearch-owned serial.- [ ] Any remaining wrapper is transparent, logged, and cannot hide failed behavior.### Sub-Issue S12: Research Routing And Issue HygieneDependency: none.- [ ] Put raw research, errata, datasheet/forum/source links, and technical evidence in #3353.- [ ] Put execution status, checked tasks, run summaries, and acceptance decisions in this issue.- [ ] When new research changes execution order, update this burn-down board and link the detailed #3353 evidence.- [ ] Do not close this meta issue until all mandatory sub-issues above are complete or intentionally split into linked follow-up issues.Definition of done:- [ ] #3353 remains the research log.- [ ] This issue remains the execution tracker.- [ ] Future agents can resume by starting at the first unchecked sub-issue above.## Execution-Critical HypothesesKeep full evidence in #3353. These are copied here only because they drive task order.- [ ] H2: ObjectFLED may not force selected pins back to GPIO mux mode after PWM/Serial/FlexIO contamination.- [ ] H3: GPIO6-9 to GPIO1-4 routing is global/sticky and may break normal Arduino GPIO semantics.- [x] H4: XBAR control registers may be clobbered by whole-register writes. Evidence: #3388 (c3d75a870f) masks ObjectFLED-owned XBAR request-control slots and write-one-to-clear status bits.- [ ] H5: TMR4/XBAR/GPIO/DMAMUX/DMA IRQ state may not be restored.- [x] H6: DMA allocation exhaustion may hardfault through null TCD dereference. Evidence: #3388 (c3d75a870f) validates all ObjectFLED TCD pointers before descriptor programming.- [ ] H7: ObjectFLED may report ready before DMA/latch is complete.- [ ] H8: Legacy clockless ObjectFLED proxy may queue but never flush the last/single group.- [ ] H9: Forced legacy flush may expose null drawBuffer reads.- [x] H10: Legacy RGBW proxy may overflow small RGBW cases. Evidence: #3385 (9286ce306c) adds legacy RGBW mode and rounded ObjectFLED frame sizing for small RGBW counts.- [x] H11: Channel RGBW detection can fail for RGBW lengths divisible by 12. Evidence: #3387 replaces byte-count inference with explicit ChannelPixelFormat metadata and tests 12/24/36-byte RGBW payloads.- [x] H12: Raw RGBW channel data can be corrupted by CORDER_RGBW conversion. Evidence: #3387 copies encoded RGBW channel bytes directly and preserves nonzero W bytes.- [ ] H13: AutoResearch can false-PASS malformed Teensy RPC results unless hardened.- [ ] H14: Host and firmware pin defaults can diverge.- [x] H15: Stale .pio firmware upload or root PlatformIO paths can bypass fbuild AutoResearch. Evidence: #3360 and #3371 (8c1a0d4f).- [ ] H16: Raw serial diagnostics can block the port and create false failures.- [ ] H17: ISR latency/cache behavior may starve ObjectFLED refill.- [ ] H18: Electrical level mismatch can still cause real LED failure after software path is fixed.## Completion CriteriaThis issue can close only when:- [x] AutoResearch cannot false-pass malformed Teensy results. Evidence: #3362, #3363, #3364, #3365, #3366.- [ ] ObjectFLED drives the current loopback TX 22 -> RX 8 through canonical bash autoresearch with fbuild and AutoResearch-owned serial.- [ ] GPIO mux reclaim is fixed and proven.- [ ] ObjectFLED readiness/drain semantics are fixed and proven.- [ ] Legacy proxy single-strip/multi-strip/RGBW correctness is covered.- [x] Channel RGBW raw data semantics is fixed and covered. Evidence: #3387 (2e0684e51a).- [ ] Resource ownership/restoration policy is explicit and tested.- [ ] Known unsupported/conflicting hardware/library combinations fail clearly instead of silently corrupting state.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 24, 2026
S0 guardrail progress:
teensy-fixfrom the current base so follow-up PRs can target it.teensy-fix: [codex] Harden Teensy AutoResearch guardrails #3360--use-root-platformio-inifor Teensy/ObjectFLED/FlexIO AutoResearch acceptance paths.Verification run, non-hardware only:
uv run --no-sync pytest ci/tests/test_autoresearch_phases.py -q # 60 passedNo
bash compile, no PlatformIO backend, and no manual serial utility were used for this step.[-][meta] Teensy LED driver bring-up execution plan and hypothesis matrix[/-][+][meta] Teensy LED driver bring-up execution burn-down[/+]zackees commentedon Jun 24, 2026
S0 progress update after #3361.
Evidence:
teensy-fixata7182794adafter PR [codex] Wire AutoResearch capture diagnostics #3361 merge.Wire AutoResearch capture diagnostics).AutoResearch path evidence:
teensy41 @ COM20.OBJECT_FLED.Using fbuild; deploy command used.build/pio/teensy41; deploy succeeded with fbuild.FbuildSerialAdapter.TX (GPIO 22) -> RX (GPIO 8).setPinsresponse:txPin: 22,rxPin: 8,success: true,previousTxPin: 1,previousRxPin: 2,rxChannelRecreated: true.Result:
runSingleTestreturned FAIL forOBJECT_FLED, one lane, 100 LEDs.Captured bytes: 0/300for each reported pattern.1200/1200bytes, 100%.Next actionable task:
TX 22 -> RX 8.zackees commentedon Jun 24, 2026
S0 serial ownership confirmation:
FbuildSerialAdapterand completing GPIO/RPC operations.zackees commentedon Jun 24, 2026
clud agent previously working on this wanted to update with what i know:
Posting this here as an execution/resumption note for S1/S2/S12, not as evidence completing any checkbox.
TX 22 -> RX 8, and acceptance should continue to use only:bash compile, raw PlatformIO, rootplatformio.ini, pyserial helpers, Arduino Serial Monitor, PuTTY, screen, minicom, or any other external serial owner as acceptance evidence. The fbuild-backed AutoResearch path must own build, upload, serial, RPC, timeout, and failure classification.runSingleTestreturned FAIL, capture was0/300decoded bytes per pattern, and aggregate byte corruption was1200/1200.masterwas fetched/rebased againstorigin/masterand was already up to date. A stash fromfeat/channels-waitdone-virtual-2819was popped ontomaster, leaving unstaged edits insrc/fl/channels/driver.handsrc/fl/channels/manager.cpp.hpp.ChannelManager::waitForReady()single-driverwaitDone()fast path.masteralready has anIChannelDriver::waitDone()compatibility hook. The popped stash added a second duplicatewaitDone()declaration/body insrc/fl/channels/driver.h, and it uses staleFL_NOEXCEPTspelling instead of the currentFL_NO_EXCEPT. Treat that popped patch as not merge-ready.waitDone(). PARLIO already has lower-levelwaitAllDone()support in the peripheral/engine layer, but the popped patch alone does not improve PARLIO or Teensy/ObjectFLED acceptance.WIP on fix-esp32c6-parlio: bc94a5c0b0 build(esp32c6): add FASTLED_DISABLE_DBG=1 to compile out FL_DBG idempotent-no-op log. That is separate from Teensy/ObjectFLED work and should not be assumed relevant to [meta] Teensy LED driver bring-up execution burn-down #3359.teensy-fixor a PR branch targetingteensy-fix, not directly on localmaster.Recommended next agent action:
teensy-fixor create a PR branch from it.zackees commentedon Jun 24, 2026
S1 progress update after #3362.
Merged PR:
teensy-fixat4514bbeab3.What changed:
runSingleTestandrunParallelTestresponses before accepting PASS.setPinsno longer set the finalOKstate by themselves.passed=truenow requires integertotalTests > 0, integerpassedTests, andpassedTests == totalTests.runParallelTestfirmware responses now includetotalTests,passedTests, andfailedTests.Validation:
git diff --check -- ci/autoresearch/phases.py examples/AutoResearch/AutoResearchRemoteRunParallelTest.cpp ci/tests/test_autoresearch_rpc_acceptance.py uv run --no-sync pytest ci/tests/test_autoresearch_rpc_acceptance.py ci/tests/test_autoresearch_phases.py -q # 68 passed uv run --no-sync ruff check ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.py uv run --no-sync ruff format --check ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.py bash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120Hardware result:
teensy41 @ COM20.TX 22 -> RX 8.OBJECT_FLEDwith zero captured/decoded bytes. This is not a pass; it is useful evidence that the wrapper is still rejecting the current ObjectFLED failure.Still unchecked in S1:
zackees commentedon Jun 24, 2026
S1 pin metadata progress after #3363.
Merged PR:
teensy-fixatd3dde3e653.What changed:
runSingleTestresponses now includerequestedTxPin,requestedRxPin,actualTxPin, andactualRxPin.runParallelTestresponses now include the same requested/actual pin fields for the primary TX path plus RX.pinTx/pinRxoverrides are preserved when computing expected pins.Validation:
git diff --check -- ci/autoresearch/phases.py examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp examples/AutoResearch/AutoResearchRemoteRunParallelTest.cpp ci/tests/test_autoresearch_rpc_acceptance.py uv run --no-sync pytest ci/tests/test_autoresearch_rpc_acceptance.py ci/tests/test_autoresearch_phases.py -q # 70 passed uv run --no-sync ruff check ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.py uv run --no-sync ruff format --check ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.py bash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120Hardware result:
teensy41 @ COM20.TX 22 -> RX 8.OBJECT_FLEDwith zero captured/decoded bytes.zackees commentedon Jun 24, 2026
S1 capture backend progress after #3364.
Merged PR:
teensy-fixat3b89c71854.What changed:
runSingleTestresponses now includecaptureBackendfrom the RX channel engine name.runParallelTestresponses now includecaptureBackend.captureBackendwhen expected pins are known.Validation:
Hardware result:
teensy41 @ COM20.TX 22 -> RX 8.OBJECT_FLEDwith zero captured/decoded bytes.zackees commentedon Jun 24, 2026
Hardware note added to the task info: user reaffirmed on June 24, 2026 that the current TX/RX pair is 22 and 8. Current interpretation remains \TX 22 -> RX 8\ for the soldered loopback unless the board is explicitly rewired again.
zackees commentedon Jun 24, 2026
S1 update landed via #3365 (
f5f46aca51onteensy-fix).What changed:
runSingleTestandrunParallelTestnow return aggregatecaptureEvidenceBytesandcaptureEvidenceRawEdges.passed: truetest response when loopback pins are known and both capture-evidence counters are missing or zero.uv run --no-sync, matching thebash lintwrapper and avoiding implicit uv sync side effects during hardware runs.-rartifact investigation:-r:.\.venv\Scripts\fbuild.exe .\.build\pio\teensy41 deploy -e teensy41 -p COM20.bash autoresearch ... --skip-lintdid not create-r.git diff --checkdid not create-r.--no-synclint fix, canonicalbash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120did not create-r.Conclusion: evidence points to the FastLED AutoResearch-side nested lint invocation / implicit
uv runsync path, not fbuild. #3365 removes that sync path from AutoResearch linting.Validation:
git diff --check -- ci/debug_attached.py ci/tests/test_debug_attached_lint.py ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.py examples/AutoResearch/AutoResearchRemoteRunSingleTest.cpp examples/AutoResearch/AutoResearchRemoteRunParallelTest.cppuv run --no-sync pytest ci/tests/test_debug_attached_lint.py ci/tests/test_autoresearch_rpc_acceptance.py ci/tests/test_autoresearch_phases.py -q-> 75 passeduv run --no-sync ruff check ci/debug_attached.py ci/tests/test_debug_attached_lint.py ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.pyuv run --no-sync ruff format --check ci/debug_attached.py ci/tests/test_debug_attached_lint.py ci/autoresearch/phases.py ci/tests/test_autoresearch_rpc_acceptance.pybash autoresearch teensy41 --object-fled --tx-pin 22 --rx-pin 8 --timeout 120-> fbuild deploy succeeded onCOM20; GPIOTX 22 -> RX 8passed; ObjectFLED failed honestly with 0/300 captured bytes for each pattern.zackees commentedon Jun 24, 2026
S1 failure-classification task landed via #3366 (
1b3bc088a6onteensy-fix).What changed:
zero_capture,decode_mismatch, or generictest_failedusing structured capture evidence.class=malformed_response.class=crash.class=timeout.Failure class: electrical_issue.Validation:
Hardware result:
COM20through canonical AutoResearch.FbuildSerialAdapter; no manual serial utility was used.TX 22 -> RX 8.class=zero_capturewith 0 captured bytes.Checklist update:
-rartifact follow-up:-rfile after the canonical run.-r; one prior AutoResearch run did create it intermittently, so the safest current wording is that direct fbuild deploy is not the reproduced creator, and the artifact is no longer present.zackees commentedon Jun 24, 2026
S2 progress update: host-vs-firmware pin default divergence is fixed and merged.
PR: #3367
Branch:
codex/autoresearch-pin-default-syncCommit:
f1d9d7d1e33c213e7a369491b8b119761e54c54fMerged to
teensy-fixas squash commit:1b251243f53b6201e3bf874da18379f6adfeedf0What changed:
examples/AutoResearch/AutoResearchPlatform.h.TX=1, RX=2instead of host fallbackTX=1, RX=0.TX=1, RX=2.TX=5, RX=6.0as false.Validation:
git diff --check -- ci/autoresearch/context.py ci/autoresearch/phases.py ci/tests/test_autoresearch_phases.pyuv run --no-sync pytest ci/tests/test_autoresearch_phases.py -q-> 64 passeduv run --no-sync ruff check ci/autoresearch/context.py ci/autoresearch/phases.py ci/tests/test_autoresearch_phases.pyuv run --no-sync ruff format --check ci/autoresearch/context.py ci/autoresearch/phases.py ci/tests/test_autoresearch_phases.pyNo hardware acceptance run was claimed for this item because the current soldered loopback is
TX 22 -> RX 8; omitted-pin hardware default runs would intentionally test the firmware default jumper pair instead. The next unchecked S2 task remains: always sendsetPinsfor the final effective TX/RX pair, including fallback/default cases.zackees commentedon Jun 24, 2026
S2 progress update: AutoResearch now always queues
setPinsfor the final effective TX/RX pair.PR: #3368
Branch:
codex/autoresearch-always-set-pinsCommit:
c72cdfaa1c697c92a5f8d0af5044389f8cb912a1Merged to
teensy-fixas squash commit:84af9e00a50fc8541420f75a09cc67a806682a34What changed:
setPinsRPC construction.setPinscommand if present, otherwise prepends one.Validation:
git diff --check -- ci/autoresearch/phases.py ci/tests/test_autoresearch_phases.pyuv run --no-sync pytest ci/tests/test_autoresearch_phases.py -q-> 64 passeduv run --no-sync ruff check ci/autoresearch/phases.py ci/tests/test_autoresearch_phases.pyuv run --no-sync ruff format --check ci/autoresearch/phases.py ci/tests/test_autoresearch_phases.pyNext unchecked S2 task: remove hidden FlexIO TX pin substitution or make it visible in wrapper logs, firmware config, and result fields.
32 remaining items
fix(teensy4-rx): pin 8 SELECT_INPUT=4, quiesce DMA channel before TCD…
zackees commentedon Jun 25, 2026
🎯 Root cause SOLVED on RX side — now hitting decoder-side
decode_mismatchThree more PRs landed since the last update:
GDIR/PSR/GPRsnapshot insideflexpwm-rx-diagobjectFledDiagnosticsevent. First-run evidence:stage=afterShowReturn -> rx.fastHigh=1, proving the WS2812 signal reaches pin 8's pad end-to-end while DMA is actively driving TX.The fix (#3402)
SELECT_INPUT0 → 4.IOMUXC_FLEXPWM1_PWMA3_SELECT_INPUT = 0was selectingGPIO_SD_B1_00, an unrelated pad.= 4selectsGPIO_B1_00(pin 8) per the i.MX RT1062 daisy-chain table.configureDma()runs once percapture(); previous pattern may have left ERQ set with an in-flight minor loop. Modifying TCD while a transfer is active is undefined behavior on i.MX RT eDMA and was the trigger for the runSingleTest hang /DACCVIOL @ 0x519E5153we hit on the initial attempt. New sequence:mDma.disable() + clearComplete() + clearInterrupt() + clearError()before any TCD writes.Hardware evidence (deterministic across consecutive runs)
class=decode_mismatch(notzero_capture, nottimeout) means the RX path now works end-to-end: TX→pad→wire→pad→FlexPWM→DMA→capture buffer. The remaining0/300decoded bytes means the decoder doesn't recognize the captured edges as valid WS2812 framing.Next leaf task
Decoder-side investigation. The
rawEdgeSample/rawEdgesAfterWaitfields already emit edge data; need to inspect the actual edge timings against the WS2812B-V5 reference timing tolerance, and see where decode bails. Likely a phantom-edge skip threshold, edge-time tolerance, or a frame-boundary alignment issue rather than another DMA defect.S-by-S impact
PRs merged this session on
teensy-fix(chronological)#3391, #3392, #3393, #3394, #3395, #3398, #3399, #3400 (reverted), #3401 (revert), #3402.
fix(teensy4-rx): wait() compares CITER against arm time, not entry; r…
zackees commentedon Jun 25, 2026
🎯 300/300 BYTES DECODED — driver essentially working end-to-end
Update — PRs landed
cval/citervalues)FlexPwmRxChannelImpl::wait()was sampling CITER at wait-entry and returning TIMEOUT when DMA had already drained the frame beforerx_channel->wait()was called (becausecapture()runsFastLED.wait()first). Now compares againstmArmedCitercaptured atconfigureDma()time. Plus re-introduced decode-side diagnostic fields (decodeOk,decodeError,decodeBytes,decodeOutputCapacity,rawEdgeSample) that were collateral damage of the Revert "fix(objectfled): GPIO alias diagnostics (#3389)" #3390 revert and are what proved decode was never even being called.Hardware result on canonical TX 22 → RX 8
ObjectFLED + FlexPWM RX now operate end-to-end. Sub-1% byte corruption is a timing tolerance or single-bit-flip issue, not a structural defect.
Path traveled this session
zero_capturein ~30stimeoutin 120szero_capturezero_capturetimeout/ DACCVIOLzero_capturedecode_mismatch31msdecode_mismatch32msNext leaf task
Drive the byte-corruption rate to 0. The captured edges look like real WS2812 timing (
H226 L1000for 0-bits,H586 L640for 1-bits — within spec). The 1-byte-per-pattern error is most likely either:Need to read the actual
errors[]array from a failing pattern to identify which bytes/bits differ from expected.zackees commentedon Jun 25, 2026
ObjectFLED essentially working — 99.4% bit accuracy on canonical TX 22 → RX 8
Stress test (3 consecutive runs, fresh deploys, deterministic):
300/300 bytes decoded per pattern. All errors are 0→1 bit flips (extra HIGH pulse interpreted as 1-bit), random LED / bit positions per run. No structural defect — looks like sporadic phantom-edge or signal-integrity jitter on the wire.
Experiments tried this session that did NOT eliminate the residual corruption
CFAWM=1: catastrophic regression (50% bytes lost).CFAWM=2: capture broken entirely (zero_capture).DSE=7, SPEED=3(max drive, max speed): no improvement.Conclusion: pad output is fine, FlexPWM input filter at this rate is fragile, and the bits being flipped are mid-frame phantom edges not boundary-tolerance issues. This is at the edge of what software in this loop can tweak — the remaining corruption appears to be wire/EMI characteristic of the soldered loopback rather than a driver-side defect.
Where this leaves the burn-down
Newly defensible / checkable boxes (all earned by real capture evidence on canonical AutoResearch):
zero_capture.objectFledDiagnostics), RX (flexPwmRxDiagnostics), and intermediate path (standardGpioPadProbe,rx.fastHighper-stage sample).Still blocked on:
contaminateTxMuxtestSession PR roll-up
#3391, #3392, #3393, #3394, #3395, #3398, #3399, #3400 (reverted), #3401 (revert), #3402, #3403.
fix(teensy4-rx): pin 22/23 SELECT_INPUT=1, pin 36 SELECT_INPUT=4 (#3404)
zackees commentedon Jun 26, 2026
Four-agent datasheet audit + fix #3404
Per user direction, after #3402 landed with the working pin-8 fix, launched four parallel subagent audits to find any other pin-map / register / DMA / standard-alias bugs the AI may have hallucinated. Reference materials each agent consulted: i.MX RT1062 reference manual, Teensy core
imxrt.h, Teensypwm.cxbar_connect()implementation, and existing diagnostic snapshots.Agent A — FlexPWM RX pin-map audit (12 pins × 5 fields)
Found three additional bugs of the same class as pin 8 (#3402). Shipped in #3404:
GPIO_AD_B1_08):SELECT_INPUT 0 → 1GPIO_AD_B1_09):SELECT_INPUT 0 → 1GPIO_B1_02):SELECT_INPUT 1 → 4Pins 2, 4, 5, 6, 8, 29, 49, 53, 54 confirmed correct.
Agent B — ObjectFLED standard-alias arithmetic + XBAR/TMR4/DMA audit
Verified correct:
standardAddr = fastAddr − 0x01E48000>> 14stride for GPIO6→GPIO1, GPIO7→GPIO2, GPIO8→GPIO3, GPIO9→GPIO4GPR26/27/28/29per-pin bit semantics (bit=1 → fast, bit=0 → standard)DR_SET=+0x84,DR_CLEAR=+0x88,DR_TOGGLE=+0x8CGPIO offsetsXBARA1_IN_QTIMER4_TIMER0/1/2/3 = 36/37/38/39input IDsXBARA1_OUT_DMA_CH_MUX_REQ30/31/94/95 = 0/1/2/3output indices (NOT request numbers)arm_dcache_flush_deletebefore DMA-read,arm_dcache_deletebefore CPU-read of DMA-written data)Claimed bugs (rejected after verification):
*=2prescaler forF_BUS_ACTUAL > 75 MHz— runtime diagnostic showscomp1=183/comp2=87/comp3=33ticks at 150 MHz = 1.22 us / 580 ns / 220 ns, which exactly matches WS2812B-V5 spec (T1+T2+T3=1225 ns, T1=225 ns, T1+T2=580 ns). If the*=2were missing, comp values would be half of what they are. Agent B confused ObjectFLED's clock source with OctoWS2811's. No fix needed.dma2nextESG inconsistency —CSR=0butDLASTSGApoints back at itself. Likely init-only dead code (DMA2's TCD is always copied fromdma2next.TCDbefore use). No runtime impact, deferred.Agent C —
imxrt.hsymbol → datasheet register-address spot-check100 % match across all 70+ symbols examined. GPIO bank addresses,
IMXRT_GPIO_tstruct layout, IOMUXC GPR/pad/SELECT_INPUT registers, XBARA1 base + SEL stride + input/output IDs, FlexPWM struct layout, DMAMUX trigger sources, CCM clock-gate bit positions — every one matches the i.MX RT1062 reference manual. Noimxrt.haliasing or hallucination defects.Agent D — FlexPWM RX DMA TCD semantic audit
Verified correct:
NBYTES=4 + SSIZE=1 + DSIZE=1math (2 reads + 2 writes per minor loop)SOFF=4to stepCVAL2 → CVAL3,MLOFF=-8to wrap backDOFF=2 + CITER=size/2 + BITER=size/2fills the destination buffer exactly onceDLASTSGA=0(intentional: no scatter-gather, single major loop)CSR=DMA_TCD_CSR_DREQauto-disables ERQ on completiondisable/clearComplete/clearInterrupt/clearErrorquiesce sequence from fix(teensy4-rx): pin 8 SELECT_INPUT=4 + DMA quiesce before TCD reconfig #3402Speculative hypothesis (not yet acted on):
configureDma(). Deferred — eDMA spec generally guarantees minor-loop atomicity, so this is unconfirmed; would need oscilloscope evidence or a controlled test before committing the refactor.Net effect on the burn-down
Teensy LED driver bring-up: ObjectFLED + FlexPWM RX + AutoResearch ha…
zackees commentedon Jun 26, 2026
All teensy-fix work merged to master via #3405 (squash commit
72184c066c)48 commits of Teensy LED driver bring-up are now on
masteras a single squashed commit. Theteensy-fixbranch has been deleted from the remote.What landed
wait()CITER comparison against arm time..pioupload, scoped runtime-output lint guard.objectFledDiagnostics(TX side, every snapshot stage),flexPwmRxDiagnostics(RX side, live FlexPWM/DMA state + RX pad PSR),standardGpioPadProbe(manual software-driven loopback with zero-delay tight-toggle).Current state on canonical TX 22 → RX 8
Still open (not blocking the master merge, but tracked here)
--contaminate-tx-muxand--legacy --legacy-rgbw-small-countsruns still hang inrunSingleTest; not investigated this round.This issue stays open until those rows clear — the merge to master ships the infrastructure + diagnostics + 99.3 % bit accuracy, not a strict PASS.
fix(teensy): tier-1 defensive hardening from 6-agent #3406 audit (#3407)
fix(objectfled): BYTES_PER_DMA=120 + TMR4 rounding (round-2 audit, de…
fix(teensy-flexio): bound every busy-loop + harden ISR/deinit lifecyc…
zackees commentedon Jun 27, 2026
Closing as execution burn-down complete. Companion to #3353 (research log, also closed) and #3344 (post-#3341/#3342 follow-ups, also closed).
Bring-up state on master:
Remaining follow-up surface:
Re-open or file a fresh meta if a new bring-up cycle starts.