Skip to content

rp2040 and rp2450(w) board names should be in fbuild - not local resolution!!! #3836

Closed

Description

@zackees

these usb id identifiers should be built in to fbuild NOT fastled.

fbuild should get these identifiers from fastled/boards through the normal build process.

Please do not push this here. Both of the rp2040 and rp2350 and w variants should be ingested this way.

Also add this to the agent docs that this is the proper way to get these board name resolutions.

You may merge this if you do a follow up

Activity

  1. zackees commented on Aug 22, 2026

    @zackees
    MemberAuthor

    Groundwork for this issue: #3965.

    I audited every USB VID:PID literal in the ci/ tree against the live FastLED/boards artifact (usb-vids.proto.zstd, 36 vendors / 1056 products). 14 of 15 already resolve upstream — including all four RP2xxx identities this issue names:

    VID:PID Identity Registry
    2E8A:000A rp2040 / rpipico application CDC resolved
    2E8A:F00A rpipicow application CDC resolved
    2E8A:000F rp2350 / rpipico2 application CDC resolved
    2E8A:F00F rp2350w / rpipico2w application CDC resolved
    2E8A:0003 RP2 ROM BOOTSEL resolved

    So the data side of "should be in fbuild - not local resolution" is already done upstream. ENVIRONMENT_TO_VCOM_VID_PIDS is not filling a registry gap for RP — it is shadowing published data.

    #3965 documents the rule (agents/docs/usb-vid-pid-registry.md), freezes both legacy tables, adds ci/util/audit_usb_registry.py so this stays verifiable, and cascades the pin to fbuild 2.5.19 — which selects the exact runtime RP board profile from the verified registry rather than a local guess (FastLED/fbuild#1335).

    What remains for this issue is the code change #3965 deliberately does not make: _resolve_port_and_environment (ci/autoresearch/phases.py:1320) still only skips local port detection for RP when --rpc-smoke or --watchdog-soak is set, so driver mode (e.g. --parlio) still calls auto_detect_upload_port. The RED test asserting the correct behavior already exists on branch fix/3836-fbuild-rp-port-resolution (test_rp2xxx_driver_mode_delegates_port_selection_to_fbuild) and fails for all four RP environments.

    One unrelated gap the audit turned up: FTDI FT232H 0403:6014 is absent registry-wide — FastLED/boards#60.

  2. zackees commented on Sep 7, 2026

    @zackees
    MemberAuthor

    Closing — all four asks in this issue are now satisfied on master.

    1. USB IDs come from fbuild, not FastLED. Per the #3965 audit, all four RP2xxx identities plus ROM BOOTSEL resolve from the published FastLED/boards registry:

    VID:PID Identity
    2E8A:000A rp2040 / rpipico application CDC
    2E8A:F00A rpipicow application CDC
    2E8A:000F rp2350 / rpipico2 application CDC
    2E8A:F00F rp2350w / rpipico2w application CDC
    2E8A:0003 RP2 ROM BOOTSEL

    2. The legacy local tables are gone. ENVIRONMENT_TO_VCOM_VID_PIDS was retired in #4070; ci/tests/test_autoresearch_phases.py asserts the symbol no longer exists, so it cannot quietly return.

    3. Agent docs record the rule. agents/docs/usb-vid-pid-registry.md documents the pipeline end to end — FastLED/boards → usb-vids.proto.zstd → fbuild ingestion (crates/fbuild-core/src/usb/data.rs) → FastLED via the fbuild==X.Y.Z pin — including the cascade procedure when an identity is missing.

    4. The follow-up you asked for is merged. #4162 landed test_rp2xxx_driver_mode_delegates_port_selection_to_fbuild, parametrized over all seven RP2XXX_ENVIRONMENTS. It pins that driver-mode runs leave upload_port unset and never call auto_detect_upload_port.

    That test was the one real gap left. defer_port_selection_to_fbuild = bool(ctx.final_environment) (ci/autoresearch/phases.py:1336) had already fixed the behavior, but the regression test named in this issue lived on fix/3836-fbuild-rp-port-resolution, which no longer exists on the remote — so nothing prevented the local-scan path from coming back. Verified RED→GREEN: stubbing the flag to False fails all seven environments; restoring it passes all seven.

    Confirmed live on hardware this session: an RP2350 deploy returned FBUILD_DEPLOY_PORT=/dev/ttyACM1 with no local port detection, and the full RPC smoke passed.

    Reopen if a board name still resolves locally anywhere.

  3. moved this from Triage to Done in FastLED Trackeron Sep 7, 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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions