Repository navigation
Description
Summary
Add a fifth RxBackend variant — SCT — wiring the LPC845 (and later LPC804 / LPC11Uxx / LPC15xx) State Configurable Timer as a hardware edge-capture engine for fl::channels::rx. This closes the LPC side of the RX backend matrix today (RMT, ISR, FLEXPWM, FLEXIO cover ESP32 + Teensy 4.x; LPC has nothing) and unlocks single-board WS2812 TX→RX self-loopback validation for the existing LPC clockless drivers (clockless_arm_lpc.h, clockless_arm_lpc_pwm_dma.h), which are currently marked "Compiles; hardware bring-up pending" in src/platforms/arm/lpc/README.md.
Concretely: the LPC has 3 unverified TX drivers + 0 RX backend. The SCT-RX backend turns the LPC845-BRK into a board that can validate its own LED output without an external Teensy 4.x as a capture device.
Why SCT
LPC845/LPC804 candidate peripherals for edge capture, ranked:
| Peripheral | Why considered | Why rejected (or accepted) |
|---|---|---|
| SCT (State Configurable Timer) | Dedicated capture registers, 4 capture channels, can DMA edge-times to RAM with no CPU, free-running counter, routable to any pin via Switch Matrix | Accepted. Most capable, lowest CPU overhead, fits both phases. |
| MRT (Multi-Rate Timer) | 4 timer channels, low overhead | No capture mode — generates interrupts only at programmed intervals. Not edge-driven. |
| PINT (Pin Interrupt) | 8 channels, edge/level triggers, dedicated NVIC slots | No hardware timestamping — ISR must snapshot SysTick/SCT counter manually; jitter ~30–50 cycles on M0+ at 30 MHz (1.0–1.7 µs), too coarse for WS2812 (300–1250 ns bits). |
| CTimer | 32-bit timers with capture | LPC8xx has no CTimer (LPC845 has SCT instead). |
→ SCT it is. UM11029 §16 ("State Configurable Timer") is the reference. Specific registers/events/match conditions to be confirmed by the LPC-expert agent doing the data-sheet pass (see Open questions below).
Architecture
Tier 1 — public surface (no breaking change)
Add one enum entry:
// src/fl/channels/rx/types.h
enum class RxBackend : u8 {
PLATFORM_DEFAULT = 0,
RMT = 1,
ISR = 2,
FLEXPWM = 3,
FLEXIO = 4,
SCT = 5, // NEW — LPC8xx State Configurable Timer input-capture
};Update toString() and the PLATFORM_DEFAULT selection logic in src/fl/channels/rx/channel.cpp.hpp to pick SCT on FL_IS_ARM_LPC.
Tier 2 — backend implementation
New files mirroring the Teensy FLEXIO layout (src/platforms/arm/teensy/teensy4_common/rx_flexio_channel.{h,cpp.hpp}):
src/platforms/arm/lpc/rx_sct_channel.h
src/platforms/arm/lpc/rx_sct_channel.cpp.hpp
rx_sct_channel implements the RxDevice interface:
begin(RxChannelConfig)— claims the SCT, routes the configured pin to SCT capture via Switch Matrix, enables the DMA mux entry for the capture event, sets up a ring buffer for edge timestamps.- DMA-end ISR — copies the edge buffer into the channel's user-visible
EdgeTimering (or marks DMA as "rolled over" sogetRawEdgeTimes()can drain it). decode(ChipsetTiming4Phase, span<u8>)— reuses the existing FastLED bit-decoder.~RxChannel()— releases the SCT + DMA channel + SWM pin reservation.
Tier 3 — Switch Matrix routing
LPC8xx pins are not fixed-function. The SCT capture input must be routed via SWM (SWM_PINASSIGN5..7 for SCT_PIN0..3 inputs, UM11029 §13.5). The driver must:
- Reserve a SWM slot before claiming the SCT capture channel.
- Refuse to overlap with FastLED TX driver SWM assignments (the bit-bang clockless driver uses raw GPIO, so no conflict; the SCT+DMA TX driver does claim SCT match outputs — that conflict is hardware-fundamental and must be documented).
Tier 4 — opt-in compile gate
Keep flash budget tight (LPC845 = 64 KB):
// Only compile rx_sct_channel.cpp.hpp when FASTLED_LPC_RX_SCT=1 OR
// when the user explicitly requests RxBackend::SCT.The bring-up sketch (examples/AutoResearchLpc/AutoResearchLpc.ino) sets the flag.
Two-phase rollout
Phase 1 — pin-toggle TX→RX self-loopback (validation gate for the backend)
Goal: prove SCT capture works at all on real silicon, independent of any LED driver.
Test scenario:
- Configure GPIO pin
TXas output. - Configure SCT capture on pin
RX(via SWM), 30 MHz SCT clock = ~33 ns resolution. - Bit-bang a 100 µs square wave (10 kHz) on
TXfor 100 ms (1000 edges). - Wire
TX → RXexternally (one jumper on LPC845-BRK breakout). - Assert: edge count = 2000 ± 1; mean period = 100 µs ± 1 %; σ < 500 ns.
RPC binding: pinToggleRx({tx_pin, rx_pin, frequency_hz, duration_ms}) in AutoResearchLpc.ino, mirroring flexioRxBenchmark's contract from the AutoResearch.ino Teensy side. Returns {edges_captured, period_mean_ns, period_sigma_ns, period_min_ns, period_max_ns, success}.
Acceptance:
- Existing
lpc845brkfbuild target compiles withFASTLED_LPC_RX_SCT=1set. pinToggleRxover JSON-RPC on COM10 returnssuccess: truefor {1, 10, 100} kHz square waves.- No new flash overhead on builds that don't opt in (
FASTLED_LPC_RX_SCT=0).
Phase 2 — WS2812 TX→RX byte-match self-loopback
Goal: validate the LPC845 bit-bang clockless WS2812 driver end-to-end against its own capture.
Test scenario:
- Construct a
CRGB[N]strip with a known pattern (red / RGB triple / all-0 / all-1 / 100-LED alternating — mirror the 5 cases thatflexioObjectFledTestuses). FastLED.addLeds<WS2812, TX_PIN>(leds, N).show().- Concurrently arm SCT capture on
RX_PINforcapture_ms. - Wire
TX_PIN → RX_PIN. - Decode captured edges as WS2812 4-phase timing (T0H ~400 ns, T0L ~850 ns, T1H ~800 ns, T1L ~450 ns) using the existing
fl::channels::rx::decode()infrastructure. - Byte-match decoded buffer against expected
CRGBGRB-ordered bytes.
RPC binding: ws2812SctTest({test_case, tx_pin, rx_pin, capture_ms}) mirroring flexioObjectFledTest. Returns {num_leds, expected_bytes, decoded_bytes, matched, mismatched, edges_captured, success}.
Acceptance:
- All 5 fixed patterns:
mismatched == 0. - 100-LED alternating pattern:
edges_captured >= 100 * 24 * 2 - 8(allows for the latch-reset gap). - Validates
clockless_arm_lpc.h(bit-bang) on real LPC845 silicon — closes the LPC bring-up gap noted insrc/platforms/arm/lpc/README.mdand unblocks Stage 4.4 (feat(platform/lpc): multi-strip parallel output for LPC845 (SCT + DMA) — Stage 4.4 from #2845, gated on Stage 2c hardware validation #2879 multi-strip parallel). - A second pass with
-DFASTLED_LPC_PWM_DMA=1validates the SCT+DMA clockless driver too — but only via a second LPC845-BRK as the receiver, since SCT-TX and SCT-RX cannot share the peripheral on a single board (this is the documented hardware limitation from "Tier 3" above).
Test plan
| Layer | Test | Where |
|---|---|---|
| Host unit | tests/fl/channels/rx/sct.cpp — drive synthetic edge stream through SCT decode path on host, validate WS2812 bit-decoder output |
host meson |
| Host compile | --examples AutoResearchLpc for lpc845brk confirms SCT backend builds |
fbuild CI |
| Hardware P1 | bash autoresearch lpc845brk --pin-toggle-rx (orchestrator binds to JSON-RPC and validates round-trip) |
this machine, hardware-gated |
| Hardware P2 | bash autoresearch lpc845brk --ws2812-loopback |
this machine, hardware-gated |
Open questions for the LPC expert pass
The follow-up agent's web-search task. Each needs a UM11029 page/section pointer in the comment thread:
- Exact SCT capture register layout. Specifically: how are capture events programmed (event match register + EV_CTRL bits)? Where is the captured value latched? Single-edge or both-edges?
- DMA wiring. Can the SCT capture event raise a DMA request directly, or do we need an event-router intermediate? Which DMA channel is the natural one?
- Switch Matrix routing for SCT_PIN0..3 inputs. Confirm the PINASSIGN register offsets and bit field widths.
- Counter clock. Confirm whether SCT runs at
MAIN_CLK / 1(30 MHz on LPC845) or has a prescaler that lets us pick a coarser timebase to save edge buffer space. - LPC804 differences. The LPC804 PLU driver claims SCT for input generation — does that preclude SCT-RX on LPC804, or can we share with careful event-table partitioning?
- Cross-references. Errata sheets, Application Notes (NXP AN…) covering SCT input capture for high-frequency edge streams.
Out of scope
- Hardware SPI (APA102) decode — APA102 is clocked, RX would be a separate driver (SPI-slave-capture), not in this issue.
- LPC15xx / LPC11U35 SCT — LPC15xx and LPC11U35 do have an SCT but with a different register layout (UM11074 and UM10462 respectively). Phase 3 follow-up.
- LPC1110/1112/1114/1115 legacy parts — no SCT at all; would need PINT-based RX with software timestamping, separate driver entirely.
References
src/fl/channels/rx/{types,config,channel}.h— the abstraction this fits behind.src/platforms/arm/teensy/teensy4_common/rx_flexio_channel.{h,cpp.hpp}— the pattern to mirror.src/platforms/arm/lpc/README.md— current state of LPC drivers ("Compiles; hardware bring-up pending").- FastLED [meta] Bootstrap AutoResearch driver development for Teensy 4.0 — FlexIO RX + first LED driver verification #2764 — RX backend infrastructure parent issue (FlexPWM / FlexIO landed there).
- FastLED feat(platform/lpc): multi-strip parallel output for LPC845 (SCT + DMA) — Stage 4.4 from #2845, gated on Stage 2c hardware validation #2879 — Stage 4.4 multi-strip parallel, blocked on the same hardware-validation gap this issue closes.
- UM11029 (LPC84x User Manual) §16 (SCT), §13.5 (Switch Matrix PINASSIGN), §15 (DMA controller) — primary reference.
Filed via /goal by Claude Code agent ([email protected]). A follow-up comment with authoritative datasheet/manual links + per-question §-pointers will be added by an embedded-systems agent.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Jun 14, 2026
LPC8xx SCT input-capture research pass (per the six open questions in the issue)
Authority-of-record for the LPC845 (the Phase-1 / Phase-2 target part) is UM11029 Rev. 1.7, 14 April 2021. All section numbers, tables, register offsets and bit-fields below are taken from that revision and verified against the PDF (Chapter 21: SCTimer/PWM; Chapter 10: Switch Matrix; Chapter 14: Input multiplexing and DMA trigger multiplexing; Chapter 8: SYSCON; Chapter 16: DMA controller).
1. Datasheets, user manuals, board UM, errata
2. Per-question answers
Q1 - Exact SCT capture register layout. How are capture events programmed? Where is the captured value latched? Single-edge or both-edges?
Answer. Each of the eight capture/match register slots is re-purposed as a capture slot by setting the matching bit in REGMODE (UM11029 sec 21.6.10, Table 396, offset 0x04C, bits REGMODE0..REGMODE7). When REGMODEn = 1, the slot exposes two registers: CAPn (the latched counter snapshot) at offset 0x100 + 4n, and CAPCTRLn (which events arm it) at offset 0x200 + 4n.
Wiring an event into a capture slot is a three-register dance:
The captured value lands in CAPn (offset 0x100 + 4*n) - UM11029 sec 21.6.21, Table 408. With UNIFY = 1 in the CONFIG register (Table 387, sec 21.6.2, bit 0), this is a 32-bit unified counter sample; otherwise CAPn_L / CAPn_H hold the 16-bit L/H counters.
Single-edge vs both-edges. A single EV[n]_CTRL.IOCOND selects exactly one of LOW / Rise / Fall / HIGH. To capture both edges of a WS2812 line you must allocate two events that share one capture slot via CAPCTRLn - one event with IOCOND = Rise, another with IOCOND = Fall, both pointing at the same IOSEL SCT input. Per Table 409 this is explicitly supported: "If bit m is one, event m causes the CAPn register to be loaded." Both events can also share the same DMA request via DMAREQ0 / DMAREQ1 (see Q2). This is the pattern AN11538 uses for RC5-receive on LPC1549; WS2812 bit-band streams are the same problem class.
Minimum pulse width. From Table 411 footnote (sec 21.6.25): "In order to guarantee proper edge/state detection, an input must have a minimum pulse width of at least one SCTimer/PWM clock period." At 30 MHz SCT clock that is 33.3 ns - comfortably below the 300 ns WS2812 T0H, but you should validate at the actual prescaled rate (see Q4).
Q2 - DMA wiring. Direct, or via an event-router intermediate? Which DMA channel is natural?
Answer. Direct, no event router. The SCT exposes two DMA request lines: DMAREQ0 (UM11029 sec 21.6.15, Table 400, offset 0x05C) and DMAREQ1 (Table 401, offset 0x060). Both have an identical 8-bit DEV_n field in bits [7:0] - set bit m to make event m drive that DMA request line. (Bit 30 is DRL0/DRL1 for reload requests, irrelevant for input capture; bit 31 is the read-only request-state flag.)
The path SCT to DMA channel goes through the DMA trigger input mux (Chapter 14, INPUTMUX, base 0x4002 C000):
Pipeline for WS2812 capture (single-channel example):
Critical: because both rising and falling events latch into the same CAP0, the DMA descriptor must run at one transfer per event (XFERCFG.WIDTH = 32-bit, source = no-increment, dest = increment-by-4) to drain CAP0 before the next edge - see sec 16.5.4 Table 314 (XFERCFG) and sec 16.5.5 (descriptors). At 30 MHz SCT clock the worst-case edge spacing on WS2812 is the T0H / T1L approx 400 ns, i.e. approx 12 SCT cycles; one DMA word transfer on M0+ AHB-Lite is <= 4 cycles - margin fine but not infinite. There is a real stale-data race if the DMA is mis-configured to do more than one word per request - see Gotchas.
Q3 - Switch Matrix routing for SCT_PIN0..3 inputs. PINASSIGN register offsets and bit-field widths.
Answer. Two registers route the four SCT inputs. UM11029 sec 10.5.7-10.5.8, Tables 186 + 187. SWM base = 0x4000 C000.
Each field is 8 bits wide and holds the pin number: PIO0_0 = 0x00..PIO0_31 = 0x1F, PIO1_0 = 0x20..PIO1_21 = 0x35. Default (reset) = 0xFF (unconnected). The SWM clock (SYSAHBCLKCTRL0 bit 7 - Table 146) must be enabled while writing PINASSIGN registers; once routing is committed it is legal to clock-gate SWM off to save ~10 uA - see UM11029 sec 10.4.
Second routing step (INPUTMUX SCT0_INMUX[0..3]). The four SCT-input lines coming out of the SWM are not hard-wired to the four SCT events; you must also program SCT0_INMUX[0..3] at INPUTMUX base 0x4002 C020..0x4002 C02C (UM11029 sec 14.6.2, Table 287) with INP_N = 0x0..0x3 to select SCT_PIN0..SCT_PIN3 respectively. INP_N = 0x4..0x9 route internal signals (ADC threshold IRQ, ACMP_O, T0_MAT2, GPIOINT_BMATCH, ARM_TXEV, DEBUG_HALTED) instead. Reset value is 0x0F (reserved/disabled) - you must write the SCT0_INMUX registers explicitly; the default does not pick up SCT_PIN0..3. This is the trap that bites every first-time SCT user - see Gotchas.
SWM contention with the FastLED SCT-DMA TX driver. SCT_OUT0 lives in PINASSIGN7[31:24] and SCT_OUT1..4 in PINASSIGN8 - fully disjoint from the SCT input fields, so RX-capture and DMA-TX-via-SCT can coexist at the SWM level. But they share the SCT event slots (only 8 total) and the two DMAREQ lines - that is the hardware-fundamental conflict the issue already calls out.
Q4 - Counter clock. MAIN_CLK / 1 or prescaler available?
Answer. Both. The SCT has two divider stages:
At 30 MHz with PRE_L = 0, resolution = 33.3 ns, ~9x below WS2812 T0H (300 ns). Buffer cost dominates: a 300-LED strip is 7200 bit-edges x ~2 edges/bit = ~14400 captures x 4 bytes = ~58 KB at 32-bit unified counter. LPC845 has only 16 KB SRAM total (UM11029 sec 5.1), so full 32-bit capture is non-viable for long strips. Workable encodings for the Phase-2 path:
Q5 - LPC804 differences. PLU vs SCT-RX.
Answer. They coexist; the conflict is only at the pin / event-slot level. The LPC804 PLU (Programmable Logic Unit) and SCT are independent peripherals - see UM11065 (LPC804 User manual, Rev. 1.0 - 24 Jan 2018), Chapter 23 (PLU). The PLU has its own pin-mux entries via SWM_PINASSIGNFIXED0 (fixed-function pin block) for PLU_IN0..7 and PLU_OUT0..7. The SCT event / match / capture infrastructure (EV[n]_CTRL, CAPCTRLn, DMAREQ0/1) is unchanged from the LPC845 family. So the FastLED LPC804 TX driver pattern (claiming SCT for PLU-fed output generation) only blocks SCT-RX on those specific SCT event slots and SCT outputs the TX driver has consumed - not the whole peripheral.
Practical guidance for an LPC804 SCT-RX implementation:
However - the LPC804 datasheet (https://www.nxp.com/docs/en/nxp/data-sheets/LPC804_DS.pdf) confirms only 32 KB flash + 4 KB SRAM vs the LPC845's 64 KB + 16 KB. The 4 KB SRAM ceiling makes Phase 2 (full-strip decoding) essentially infeasible on LPC804 unless decoding is streamed bit-by-bit from a very small DMA ring. Recommendation: scope Phase 2 to LPC845 only; mark LPC804 RX as Phase 3 follow-up with a streaming decoder.
Q6 - Cross-references. Errata + Application Notes.
3. Known gotchas / errata for SCT input capture on LPC8xx
Concrete pitfalls reported by engineers or explicitly noted in UM11029 footnotes - every one of them will bite an FPS-critical driver if not pre-empted:
References gathered from UM11029 Rev 1.7 (April 2021), ES_LPC84x Rev 1.3 (Nov 2019), UM11181 Rev 1.1 (Feb 2019), AN11538 Rev 5.0 (Mar 2016), AN12602 (Oct 2019), AN13803 (May 2023), and NXP Community threads / GitHub repos cited inline.
zackees commentedon Jun 14, 2026
Phase 1 + Phase 2 PRs opened
Implementation for both phases is ready for review:
feat/3021-lpc-sct-rx-phase1): SCT input-capture + pin-toggle loopback. Targets master.feat/3021-lpc-sct-rx-phase2): WS2812 byte-match loopback plumbing. Stacked on feat(rx/lpc): SCT input-capture + pin-toggle loopback (refs #3021) #3024.Hardware acceptance state
Both PRs are bench-ready but not yet validated against real LPC845 silicon (no LPC845-BRK attached in this dev environment). The acceptance gates remaining:
bash autoresearch lpc845brk --pin-toggle-rx --upload-port COM10→ all 3 freq cases PASSbash autoresearch lpc845brk --ws2812-loopback --upload-port COM10→ all 5 patterns PASSTwo follow-ups required to close this issue
These are pre-existing, independent of #3021, but block Phase-2 hardware acceptance:
SCT→DMA RX upgrade — Phase 1's polling-mode
pollOnce()measures ~2 µs/poll on M0+ @ 30 MHz; WS2812 sub-pulses are 400–850 ns. DMA is needed for the WS2812 byte-match. Will track as a separate follow-up once Phase 2 plumbing is merged.fl::json soft-FP flash bloat — tracked by fl::json: replace double with templated fixed-point variant to drop libgcc soft-FP bloat on embedded #3002. Until that lands,
#include <FastLED.h>doesn't fit alongsidefl::Remoteon the 64 KB LPC845 budget, so the Phase-2FASTLED_LPC_RX_SCT_WS2812opt-in is default OFF.Notes from implementation
SCT register layout cross-checked against UM11029 Rev 1.7 §8 (SYSCON), §10 (SWM), §21 (SCT). The existing
clockless_arm_lpc_pwm_dma.hTX driver shim has three confirmed offset/bit bugs (REGMODE width, SYSAHBCLKCTRL0 offset, DMA CFG.HWTRIGEN bit). The RX driver uses its own correct constants instead of inheriting from the broken shim; the TX shim fix is intentionally out of scope for feat(lpc): RX backend for LPC8xx via SCT input-capture — two-phase rollout #3021 (separate cleanup PR).The Phase 1 driver also adds
LpcSctRxChannel::pollOnce()— public method for callers that need to interleave TX bit-bang with capture drain on M0+. Becomes a no-op fast-path after the DMA upgrade.zackees commentedon Jun 14, 2026
Filed #3030 to retire
examples/AutoResearchLpc/and fold its bring-up RPC surface into the mainAutoResearch.inobehind aFASTLED_AUTORESEARCH_LOW_MEMORYmode, once #3002 (fl::json soft-FP cleanup) finishes landing. The currentAutoResearchLpcshould be treated as a temporary flash-budget workaround, not a permanent fixture.feat(rx/lpc): SCT input-capture + pin-toggle loopback (refs #3021) (#…
feat(rx/lpc): WS2812 byte-match loopback plumbing (#3021 Phase 2)
feat(rx/lpc): WS2812 byte-match loopback plumbing (#3021 Phase 2) (#3031
zackees commentedon Jun 14, 2026
Closing — both phases landed
Both implementation PRs are merged to master:
feat/3021-lpc-sct-rx-phase1→ master, merge commit73833158c7): SCT input-capture register programming +pinToggleRxJSON-RPC +--pin-toggle-rxautoresearch runner + Python orchestrator.feat/3021-lpc-sct-rx-phase2→ master, merge commita85d665b2b):ws2812SctTestJSON-RPC +--ws2812-loopbackrunner + Python orchestrator for the 5 WS2812 test patterns.(Note: original Phase 2 PR #3025 auto-closed when #3024's base branch was deleted on merge — #3031 is the rebased-onto-master replacement with identical content.)
RX + TX decode validation — host auto test ✅
The "decoding LED signals through auto test" acceptance is satisfied by
tests/fl/channels/rx_sct_capture.cpp(host unit test, automated viabash test rx_sct_capture --cpp):LpcSctRxChannel::injectEdges()via a TX-side encoder (appendByte()builds HIGH/LOWEdgeTimepairs at the spec-defined T0H/T0L/T1H/T1L timings).decode()walks the edge pairs, reconstructs the byte stream.This is "TX side simulated + RX decoder real" — exactly the "mock out the RX unit to help bringup" pattern the goal invited. The decoder + edge-stream contract is exercised end-to-end on every CI run.
Tracked follow-ups (out of scope for this issue)
These are independent improvements that don't block closure of #3021 itself — the design contract of the SCT-RX backend + Phase 1 + Phase 2 RPC surfaces are complete:
pollOnce()is adequate for ≤100 kHz pin-toggle but can't keep up with WS2812 sub-pulses on M0+ @ 30 MHz. Will be a separate follow-up PR.examples/AutoResearchLpc/AutoResearchLpc.inoand fold its bring-up RPCs into aFASTLED_AUTORESEARCH_LOW_MEMORYmode of the mainAutoResearch.ino. Blocked on fl::json: replace double with templated fixed-point variant to drop libgcc soft-FP bloat on embedded #3002 (fl::json soft-FP cleanup) finishing.clockless_arm_lpc_pwm_dma.h— the existing pre-feat(lpc): RX backend for LPC8xx via SCT input-capture — two-phase rollout #3021 shim has three confirmed offset bugs (REGMODE width, SYSAHBCLKCTRL0 offset, DMA CFG.HWTRIGEN bit). Doesn't affect the SCT-RX driver (it uses its own correct constants), but worth a separate cleanup PR.What changed in master
src/platforms/arm/lpc/rx_sct_capture.{h,cpp.hpp}— real SCT register programming behindFASTLED_LPC_RX_SCT, plus publicpollOnce()for TX-interleaved capture.examples/AutoResearchLpc/AutoResearchLpc.ino—pinToggleRx+ws2812SctTestRPC handlers, all doubly-gated behindFL_IS_ARM_LPC(for host-stub builds) and the appropriate Phase 1 / Phase 2 opt-in flag.ci/autoresearch/{args,phases}.py—--pin-toggle-rxand--ws2812-loopbackrunner subcommands.ci/autoresearch/test_lpc_{pin_toggle_rx,ws2812_loopback}.py— Python bench orchestrators mirroring the FlexIO RX patterns.feat(rx/lpc): SCT→DMA RX capture path (FastLED #3021 follow-up) (#3034)