Skip to content

Retire AutoResearchLpc.ino — fold into AutoResearch.ino low-memory mode #3030

Closed

Description

@zackees

Motivation

examples/AutoResearchLpc/AutoResearchLpc.ino exists today as a flash-budget workaround for the LPC845-BRK (64 KB flash). The root cause is fl::json's floating-point soft-FP bloat tracked by #3002 — once that's fully out of the JSON-RPC hot path, the main examples/AutoResearch/AutoResearch.ino sketch will fit on Low-memory targets too, and the LPC-specific sketch becomes pure duplication.

#3002 is partially in flight (some FP ops have already been pulled out). Once it lands fully, we should retire AutoResearchLpc.ino so we don't permanently maintain two bring-up sketches that drift apart.

Proposal

  1. Add a low-memory mode to examples/AutoResearch/AutoResearch.ino behind a compile flag (e.g. FASTLED_AUTORESEARCH_LOW_MEMORY=1) that conditionally compiles only the bring-up-critical RPC surface:

    …and excludes the heavy LED-protocol matrix (RMT/PARLIO/SPI/LCD/ObjectFLED/FlexIO/etc.) that no Low-memory MCU has the peripherals for anyway.

  2. Auto-set the flag for Low-memory targets. Detect via FL_PLATFORM_HAS_TINY_MEMORY (the canonical macro from refactor(system): introduce FL_PLATFORM_HAS_*_MEMORY canonical names (closes #3000) #3019) and default-enable the low-memory mode when the target is below some threshold (≤ 128 KB flash, ≤ 16 KB SRAM — captures LPC8xx, ATmega328, ATtiny85, …).

  3. Update fbuild's nxplpc orchestrator to point at AutoResearch.ino instead of AutoResearchLpc.ino, with the low-memory flag set.

  4. Delete examples/AutoResearchLpc/ in the same PR, along with its @filter board: lpc845brk directive in the example discovery pipeline.

  5. Update ci/autoresearch/phases.py so the LPC bring-up dispatch uses the unified sketch — the _run_bring_up_tests, _run_lpc_pin_toggle_rx_tests, and (post-feat(lpc): RX backend for LPC8xx via SCT input-capture — two-phase rollout #3021 Phase 2) _run_lpc_ws2812_loopback_tests paths all stay the same since the RPC contract is identical.

Prerequisite

#3002 must be fully landed first — the LPC845 sketch must fit <FastLED.h> + fl::Remote + fl::Watchdog + the bring-up RPCs in 64 KB before the duplication can be removed.

Out of scope

  • Reworking the RPC contract of either sketch (they're already aligned — the LPC sketch is a strict subset).
  • Adding new platform support — this is a pure consolidation/cleanup.

References

Filed via Claude Code agent ([email protected]).

Activity

  1. moved this from Triage to Done in FastLED Trackeron Jun 14, 2026
  2. added a commit that references this issue on Jun 15, 2026
    0543473
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions