Repository navigation
Description
Motivation
The LPC845-BRK bring-up is functionally complete (Serial.println, FastLED log pipeline, and JSON-RPC echo round-trip all verified on hardware — see PR notes referencing FastLED/framework-arduino-lpc8xx#24–#29). The next gate is wiring this board into the bash autoresearch harness so the bring-up tests run via the same CI pipeline as ESP32/Teensy boards.
Current blocker
bash autoresearch is hardcoded to examples/AutoResearch/AutoResearch.ino (see ci/autoresearch/phases.py:594). That sketch:
- Has an
@filterrequiringboard: esp32s3,esp32c6,esp32p4,teensy41,teensy40ANDexclude: memory: low— LPC845 (low-memory ARM) is double-excluded. - Depends on RMT / PARLIO / SPI / I2S LED-protocol peripherals that LPC845 simply doesn't have.
- Drags in
FastLED.h,fl::channels::all_drivers.h,fl::RxChannel,fl::Watchdog, etc. — a 100+ KB transitive include graph that won't fit on a 64 KB-flash part.
Two viable approaches
Option A — refactor examples/AutoResearch/AutoResearch.ino to compile-out LED-protocol parts on low-memory targets (preferred)
#ifdef SKETCH_HAS_LARGE_MEMORY-gate the LED matrix testing, keep only the AutoResearchRemote/JSON-RPC infrastructure on low-memory ARM. Same sketch, same bash autoresearch <board> UX, same RPC contract. Requires:
- Adjust
@filterto admitlpc845brk(drop thememory: lowexclusion or add a newlow_memory_rpc_onlymode). - Conditional-compile guards around
#include <FastLED.h>,AutoResearchTest.h, all driver-specific tests. - Keep
AutoResearchRemote.h(or a slimmed version) for the JSON-RPC echo / RPC dispatch. - Validate against the LPC845 RPC echo round-trip from the bring-up sketch (
ci/tmp/lpc_val/lpc_val.inoin the work tree as of this issue's filing).
Option B — board-dispatched sketch (faster, less elegant)
Allow phases.py to pick a board-specific sketch directory: examples/AutoResearchLpc/ for lpc845brk, examples/AutoResearch/ for everything else. New sketch needs the FL_AGENT_ALLOW_NEW_EXAMPLE directive. Splits the CI compile matrix; means two harnesses to maintain.
Success criteria
The integration is complete when:
bash autoresearch lpc845brkbuilds, flashes, and runs cleanly on a connected LPC845-BRK without errors.- The harness verifies — via the same JSON-RPC mechanism used by other boards — that:
Serial.println()reaches the host- The FastLED log pipeline (
FL_DBG/FL_WARN/fl::println) reaches the host - JSON-RPC echo round-trip succeeds (host sends
{"jsonrpc":"2.0","method":"echo","params":[N],"id":I}\n, device responds withREMOTE: {"id":I,"result":N,"jsonrpc":"2.0"}\r\n)
- The sketch fits within LPC845's 64 KB flash budget (currently a tight squeeze — see fl::json: replace double with templated fixed-point variant to drop libgcc soft-FP bloat on embedded #3002 for the
fl::jsonrefactor that would give comfortable margin). - CI matrix includes
lpc845brk(added to whatever workflow runs the existing AutoResearch matrix).
Related
- FastLED fl::json: replace double with templated fixed-point variant to drop libgcc soft-FP bloat on embedded #3002 —
fl::jsonfixed-point variant refactor (would create the flash margin LPC845 needs for the full AutoResearch sketch) - fix(lpc845): complete bring-up gaps (operator new, .ARM.exidx, heap base, F_CPU) framework-arduino-lpc8xx#24 through FastLED with avr/sleep.h #29 — upstream bring-up fixes already merged this session
🤖 Filed via Claude Code during LPC845 bring-up. Functional bring-up is proven on hardware; this issue tracks the harness-side wire-up.
EOF
)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(autoresearch): wire LPC845-BRK bring-up harness into bash autore…
feat(platforms/lpc): bring up LPC8xx WWDT watchdog + arm in bring-up …
zackees commentedon Jun 14, 2026
Closing — items 1–3 of the success criteria are functionally complete via merged PRs:
examples/AutoResearchLpc/AutoResearchLpc.ino(the LPC bring-up sketch with@filter: board: lpc845brk).ci/autoresearch/phases.py::_run_bring_up_tests, pin-discovery + GPIO pre-test skip for LPC envs,FL_WARN_LITper-request emission for harness verification, WWDT watchdog driver, and theprobePairRPC for jumper detection.RxBackend::LPC_SCT_CAPTUREscaffold + WS2812 decoder (not strictly required for AutoResearch: wire LPC845-BRK into bash autoresearch harness #3004 but completes the loopback-test contract referenced here).End-to-end verified on real LPC845-BRK on COM10:
Flash footprint after #3014 + #3016: text = 62.16 KB / 64 KB (~1.8 KB headroom).
Item 4 (CI matrix entry) is deferred. The default
ci-compile.pypath is PlatformIO-based and doesn't yet support LPC845 (the LPC platform is fbuild-only). Wiring a CI job that invokes fbuild againstexamples/AutoResearchLpcis its own piece of CI infrastructure work — separate from this issue's primary "bring up the harness against the LPC845 board" gate, which is done. If there is desire to track that CI matrix wiring, please file a dedicated issue; this one is closed because the on-host autoresearch flow against a connected LPC845 is verified working.