Skip to content

AutoResearch LPC: post-merge review fixes for #5264 (neutrality markers, gate corePullCheck to pin-toggle build, exclude IOCON-identity pins) #5270

Closed

Description

@zackees

Findings from a post-merge review of #5264. CodeRabbit couldn't review it: the merge queue landed it first, and CodeRabbit refuses closed PRs.

  1. Platform-neutrality markers missing (examples/AutoResearch/AutoResearchLowMemory.h ~:404 and ~:628). .claude/skills/code-review/review-rules.md → "examples/AutoResearch/** changes - PLATFORM NEUTRALITY" requires // ok platform specific - <reason> on FL_IS_* branches and vendor-core calls (::pinMode, ::digitalRead, variant_pin_count in lowMemCorePullCheck). The ESP8266 lines in the same file already carry the marker; these don't.
  2. Flash cost of corePullCheck (+784 B, leaves LPC845 AutoResearch at 63988/65536). It tests the vendor core's ::pinMode, which FastLED never calls (it uses fl::pinMode, fix(lpc): native LPC845/LPC804 pin backend; honor forced software pins #5261), yet it ships in every non-DMA-loopback LPC845 build. Compile it only into the --pin-toggle-rx bench build behind a define that phases.py passes, so the shared image keeps its headroom.
  3. ci/autoresearch/lpc_pin_scan.py free_pins: on LPC845, IOCON_INDEX_PIO0_4 == 4 and IOCON_INDEX_PIO0_24 == 24. A buggy core that indexes IOCON by GPIO bit still hits the right slot on those two pads, so they can't detect the bug. Exclude 4 and 24 from the pull-check candidates, with a comment.

Checked and clean: the framework IOCON table (LPC845/LPC804 against the vendor headers), the HardFault trampoline (Thumb-1, MSP/PSP selection), the corePullCheck logic, the phases.py firmware path, and the ci/boards.py platform_packages syntax against fbuild's parser.

Refs #5264, #5268.

Activity

  1. added
    sanitized
    on Nov 18, 2026
  2. moved this from Triage to Done in FastLED Trackeron Nov 18, 2026
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

    sanitized

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions