Repository navigation
Closed
Description
Context
The RP2350W source and deployment work is ready for final board validation, but the attached hardware is not currently usable for HIL.
- Parent bring-up: feat(rp2350w): complete pin-free AutoResearch and ESP32-C6 peer-network bring-up #3832
- Implementation PR: feat(rp2350w): add BTstack BLE transport #3863 (
feat/rp2350w-btstack-transport, head33cf3d6524e85bfbd9653d92b9939dec19d7a4bc) - Required fbuild deployment hardening was merged in fix(rp): honor Arduino Bluetooth menu fbuild#1263 (
2976d863). - Source validation on the implementation branch passed: targeted pytest (184 tests),
bash lint, andbash compile rp2350w --examples AutoResearchusing the local fbuild development executable.
The board scan last showed an RP2350-associated COM17 as health=phantom selectable=no (USB ID 2E8A:F00F, serial 2DCB876B587EA334). Windows also reported an unidentified device on a root port with Code 43; fbuild cannot safely associate that unidentified USB device with the phantom COM port. COM9 was a healthy ESP32-S3, not the required ESP32-C6 network peer.
A firmware watchdog can recover a running firmware stall, but cannot repair a failed/absent host USB enumeration. Do not use raw serial tools or direct flashers; deploy only through fbuild/autoresearch after the device is healthy and selectable.
Handoff procedure
- Re-establish the RP2350W as a healthy, selectable serial device (try a known-good data cable/root port and inspect the physical wiring, including the GPIO 0/1 test bridge). Confirm the real ESP32-C6 peer and port as well.
- Run the following fbuild-backed HIL checks, substituting the confirmed C6 port:
bash autoresearch rp2350w --watchdog-soak --upload-port COM17 --timeout 120s
bash autoresearch rp2350w --flex-io --rp-pio-index 2 --tx-pin 0 --rx-pin 1 --upload-port COM17 --timeout 120s
bash autoresearch rp2350w --net-peer --upload-port COM17 --peer-environment esp32c6 --peer-upload-port <C6_PORT> --timeout 120s
bash autoresearch rp2350w --ble --upload-port COM17 --timeout 120s
bash autoresearch rp2350w --net-peer --ota --upload-port COM17 --peer-environment esp32c6 --peer-upload-port <C6_PORT> --timeout 360s- Record the complete HIL results on feat(rp2350w): complete pin-free AutoResearch and ESP32-C6 peer-network bring-up #3832 and PR feat(rp2350w): add BTstack BLE transport #3863, including whether the watchdog-soak exercise recovers cleanly without a replug. Retest the PIO loopback with the 0/1 bridge only after confirming that wiring is intentional.
Acceptance criteria
- RP2350W and ESP32-C6 appear healthy and selectable in
fbuild port scan. - All five HIL flows above pass through fbuild/autoresearch.
- The watchdog-soak run demonstrates automatic recovery from a firmware stall, with no board wedge or manual replug required.
- PIO2 GPIO 0/1 loopback has captured evidence and its physical bridge is documented.
- feat(rp2350w): complete pin-free AutoResearch and ESP32-C6 peer-network bring-up #3832 and PR feat(rp2350w): add BTstack BLE transport #3863 contain the bench evidence; remaining PR review/CI items are separated from environment flakes before merge.
- Any follow-up preserves the project rule: no static data unless it is owned by
fl::singleton<T>/fl::Singleton<T>.
Related
- feat(rp2350w): complete pin-free AutoResearch and ESP32-C6 peer-network bring-up #3832
- feat(rp2350w): add BTstack BLE transport #3863
- fix(rp): honor Arduino Bluetooth menu fbuild#1263
- fix(teensy): select framework libraries from generated sketches fbuild#1265 (separate Teensy framework-library selection failure seen in CI)
- ci(teensy41): all-examples link omits Audio and Adafruit_NeoPixel implementations #3838 and ci: teensy41 link fails on master — SpiHw2/4MXRT1062 undefined reference to SPIClass, SPI, SPI1, SPI2 #3775 (separate Teensy CI/link failures)
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Aug 6, 2026
Bench attempt — 2026-08-06, all five HIL flows blocked before reaching hardware
Attempted the handoff procedure on this repo at
feat/rp2350w-btstack-transport(33cf3d6). Three independent blockers, two of them outside FastLED. No HIL flow reached the device, so no acceptance criteria can be checked off yet.Blocker 1 — the rp2350w build fails: required fbuild fix is merged but unreleased (primary blocker)
The generated
.build/pio/rp2350w/platformio.iniis correct — it containsboard_build.ipbtstack = ipv4btcbleandlib_deps = BTstackLib,HTTPUpdate, exactly asci/boards.pyon this branch intends. The problem is that the installed fbuild ignores the menu selection:fbuild==2.5.14(pyproject.toml:189)2.5.14published2976d863bmergedv2.5.142976d863bisHEADof fbuildmainbut sits after thev2.5.14tag, and no release workflow has run since. So the Bluetooth-menu support that #3864 lists as a prerequisite exists only in fbuildmain— there is no installable fbuild that honoursboard_build.ipbtstack, which is whylibipv4.ais still linked andENABLE_CLASSIC/ENABLE_BLEstay 0.This matches the note in the issue that source validation passed "using the local fbuild development executable" — that path is not reproducible from a clean checkout.
Needed: cut fbuild
v2.5.15(or later) containing2976d863b, then bump thefbuild==pin here. I have not pinned FastLED to a git SHA — fbuild ships as a Rust wheel and a source pin would force a Rust build in every CI job.Blocker 2 — COM17 is still an unhealthy Windows devnode (confirms the original report)
Verified independently of the BLE build by deploying the non-BLE
rp2350profile, which builds cleanly and therefore reaches the deploy stage:So the board state is unchanged from the handoff report, and it is a host enumeration failure, not firmware.
fbuild port scanstill shows:COM17 2E8A:F00F ser=2DCB876B587EA334 → health=phantom selectable=noUnknown USB device: Windows problem code 43 at Port_#0014.Hub_#0001health=healthyport isCOM9, an Espressif S3 (8C:BF:EA:CF:87:B4). The--net-peerand--otaflows cannot run until a real C6 is attached.fbuild offers
--adminfor a scoped one-shot Windows PnP recovery under UAC. I deliberately did not run it: it needs interactive UAC, it mutates host PnP state, and it would not unblock anything while Blocker 1 stands. Recommend the physical path first (hold BOOT, tap RESET; known-good data cable; different root port) — consistent with the RP2040 case where software-only recovery was exhausted because a bus reset is not a VBUS cycle.Blocker 3 — GitHub Actions is in a major outage right now
PR #3863 cannot be re-validated and no new CI can be collected:
A freshly pushed PR (#3865) has 0 workflow runs against its head SHA. I have a watch armed for recovery.
Separating PR #3863's red CI from environment flakes (acceptance criterion 5)
teensy41 / build—undefined reference to set_audioClock(int, long, unsigned long, bool)masteritself ate1190d455(run 31084792473). Tracked by #3838 / #3775 / FastLED/fbuild#1265.set_audioClockis declared in the PJRC Audio library'sutility/imxrt_hw.hbut its translation unit is never linked — a framework-library selection problem, not a FastLED source problem.esp32s3_qemu_rmt / qemu_test— exit 127qemu-system-xtensa: error while loading shared libraries: libslirp.so.0..github/workflows/qemu_template.ymlinstalledlibsdl2-2.0-0but notlibslirp0. Fix opened as #3865.So #3863 has no genuine code-caused CI failure. It remains correctly un-merged only because its bench evidence does not exist yet.
Status against the acceptance criteria
fl::singleton<T>/fl::Singleton<T>—ble_rp.cpp.hppusesfl::Singleton<RpBleRuntime>, asserted byci/tests/test_rp2350w_board_config.pyTo unblock, in order
2976d863b, then bumpfbuild==inpyproject.toml.--net-peer/--otalegs.Nothing was faked and no workaround was committed: per the deployment rule I did not touch
picotool/raw serial, and I did not pin fbuild to a git SHA to route around the missing release.zackees commentedon Aug 6, 2026
Correction — the QEMU
libslirpfix moved to fbuildI previously listed #3865 (adding
libslirp0toqemu_template.yml) as the fix for theesp32s3_qemu_rmtexit-127 failure. That PR is now closed unmerged — the fix belongs in fbuild, which downloads, caches, extracts and invokes the QEMU binary. FastLED patching its workflow to install a shared library on fbuild's behalf would go stale on the next QEMU revision bump and would mask the real bug.The asymmetry I flagged supports this:
esp32s3_qemu_lcdpassed whileesp32s3_qemu_rmtfailed in the same run on the same image — a missing distro package cannot explain that. It points at a raced/partial extract of the Espressif tarball's bundledlib/libslirp.so.0in fbuild's toolchain cache.Now tracked as FastLED/fbuild#1266, which proposes atomic toolchain extraction (fixing the whole class) and having fbuild provision the QEMU runtime deps — the latter would also let us delete the pre-existing
libsdl2-2.0-0workaround fromqemu_template.yml.The triage conclusion is unchanged: this check is an environment/toolchain failure, not a code failure, and PR #3863 still has no code-caused CI failure.
fix(teensy4): vendor set_audioClock instead of the Audio library (#3866)
zackees commentedon Aug 7, 2026
Blocker 1 cleared — the rp2350w BLE build now works
Rebuilt fbuild from
main(0014f032, version-bumped to 2.5.15) and patched it into this repo's venv. The build that previously died at_needsbt.h'sstatic_assert(ENABLE_CLASSIC, ...)now completes:So
board_build.ipbtstack = ipv4btcbleis now honoured,libipv4-bt.ais linked, and BTstackLib compiles.ci/boards.pyon this branch was correct all along — the only thing missing was FastLED/fbuild#1263 reaching a consumable build.What the HIL flows now hit
With the build fixed, the flows get all the way to the deploy stage and stop on the hardware, exactly as characterised earlier:
That is a clean demarcation: everything up to and including the build is green; only the physical board is in the way.
Remaining blockers
main, verified end-to-end herehealth=phantom selectable=no2E8A:F00F,2DCB876B587EA334), plus the Code 43 device on the root port. Host USB enumeration, not firmware — needs BOOTSEL + a known-good data cable/port.--net-peerand--otacannot run.Two follow-ups before this closes
main.pyproject.tomlhere still pinsfbuild==2.5.14, so this is not yet reproducible from a clean checkout — the exact trap flagged earlier about "validated with the local fbuild development executable". Once 2.5.15 is on PyPI the pin needs bumping (tracked in Apply the link-cwd fix to the remaining ARM linkers, and cut a release with #1268 + #1263 fbuild#1269).Unrelated but fixed along the way while working here: #3867 (stray
-rfile — root-caused to the ARM link inheriting the daemon's cwd, fixed in FastLED/fbuild#1268 and extended to every ARM linker in fbuild#1270) and #3868 (thegh pr mergereview guard checking the wrong repo). A full 9-minute rp2350w build now leaves the working tree completely clean.chore(deps): bump fbuild pin to 2.5.15 (#3871)
zackees commentedon Aug 7, 2026
Blocker 1 is now closed properly — fbuild 2.5.15 is on PyPI and pinned
fbuild 2.5.15 was published at 2026-08-07 05:34:16Z (tag
v2.5.15). Confirmed all three needed commits are ancestors of the tag:2976d863(#1263, Arduino Bluetooth menu),0dd68b24(#1268) and1324d6c6(#1270).The pin is bumped and merged as #3871.
Crucially this is now validated against the published wheel, not a local development executable — which was the flaw in this issue's original "source validation passed" claim:
Byte-identical to the pre-release local build, working tree clean afterwards. The RP2350W BLE build is now reproducible from a clean checkout.
Status against the acceptance criteria
health=phantom selectable=no2E8A:F00F,2DCB876B587EA334)So everything through the build is green, and the two remaining blockers are purely physical. Once the RP2350W re-enumerates (BOOTSEL + a known-good data cable/port) and a real C6 is attached, all five HIL flows can run and this can be closed on evidence.
Also fixed along the way and now in the pinned fbuild: the stray
-rfile (#3867) that dirtied the working tree on every clean build.zackees commentedon Aug 7, 2026
Correction: the RP2350W is not wedged — it is not connected
I have been repeating this issue's premise that COM17 is an unhealthy/wedged devnode needing BOOTSEL or a scoped PnP recovery. That premise is wrong, and I should have checked Windows directly much earlier instead of trusting the
health=phantomlabel.What Windows actually reports
Present = False. In Windows terms a "phantom" devnode is a leftover registry record for hardware that is not currently attached — it is not a corrupted or wedged device. Every port fbuild listed ashealth=phantomis simply a board that is unplugged. That is also why nearly all of them showed as phantom at once: not a host-wide failure, just one attached board out of thirteen records.When the RP2350W was last seen
Last attached 2026-08-01, removed 14 minutes later, and not seen since. There is currently no
VID_2E8Adevice present on this host at all — neither the RP2350W nor the Mizu RP2040.The Genesys hub it was plugged into is present and healthy (
Status OK), so the hub and the port are fine — there is just nothing plugged into them.The Code 43 device is a different board
Different port, different hub (a direct root port, not the Genesys hub), and first installed back in March. This is the long-standing RP2040 IM411 board that has been descriptor-failed on root hub
5&4087d53since mid-July — a separate, already-known problem. It is not the RP2350W, and conflating the two is what produced the "board is wedged" reading.What this means for the handoff
--adminscoped PnP recovery would have done nothing, because there is no present device to recover — I am glad I did not run it.UF2=is also moot until the board is physically attached.2E8A:F00Fserial2DCB876B587EA334and become selectable.303A:1001serial8C:BF:EA:CF:87:B4, the S3 on COM9. No C6 has been attached.Also worth fixing in the handoff commands
The five commands in the description all pass
--upload-port COM17. That pins deploy to a specific (currently stale) record and bypasses fbuild's own fallback, which deliberately excludes unhealthy CDC records and continues via the BOOTSEL-volume path (FastLED/fbuild#1147). Dropping--upload-portgives a more accurate error and lets that fallback work. If the board ever does come up in BOOTSEL without a working CDC port,--upload-port UF2=<volume>flashes the UF2 directly.Unchanged
Blocker 1 remains resolved: fbuild 2.5.15 is released and pinned (#3871), and the rp2350w BLE build is verified reproducible from a clean checkout. The remaining work is purely "attach the hardware".
feat(autoresearch): warn when USB selective suspend can drop a HIL bo…
feat(port): add `fbuild port doctor`
zackees commentedon Aug 7, 2026
Handoff context for the next agent — including why
health=phantommeans not attached rather than broken, the hardware still needed here (RP2350W re-seat on a different cable/root port; a real ESP32-C6 has never been attached), and why the five commands above should drop--upload-port COM17— is written up in FastLED/fbuild#1282.feat(port): report last-seen for a targeted port
feat(port): report last-seen for a targeted port
feat(port): report last-seen for a targeted port
feat(port): per-device suspend, last-seen, and --all/--hub selectors (#…
zackees commentedon Aug 7, 2026
Correction: the ESP32-C6 peer requirement is already satisfied
The issue states "COM9 was a healthy ESP32-S3, not the required ESP32-C6 network peer." That is wrong, and I repeated it myself earlier in this investigation before checking.
303A:1001is Espressif's generic USB-Serial-JTAG PID, shared across S3 / C3 / C6 — it does not identify the chip. Probing instead of reading the label:COM9 is an ESP32-C6, healthy and selectable (the probe requires actual two-way communication, so this is not a registry artifact). The other three
303A:1001records — COM13, COM22, COM25 — do not respond to esptool and are not usable peers.So
--peer-environment esp32c6 --peer-upload-port COM9is ready to use. No C6 needs to be sourced.Still blocked: the RP2350W itself
Last arrival 2026-08-01. This is not a wedged devnode or a Code 43 fault — the board has simply not been attached for six days. All five HIL flows require
--upload-port COM17, so none can run until it is physically plugged in.Suggested next attempt: a different data cable and a direct root port rather than the Genesys hub (
USB\VID_05E3&PID_0610\7&3AFC677D&0&1) — an earlier replug produced no new device node at all, which points at cable or hub rather than the board.Note on the handoff commands
Drop
--upload-port COM17from the RP2350W side of those five commands. It pins deploy to one CDC record and defeats fbuild's own protection, which excludes unhealthy records and falls back to the BOOTSEL volume (FastLED/fbuild#1147). Keep--peer-upload-port COM9for the C6, where an explicit port is correct.Related work landed
#3873 makes this failure mode legible: an explicitly named
--upload-portthat is not attached now aborts in seconds with "not attached, last seen 5d ago" instead of failing at deploy after ~7 minutes of build, with a stalehealth=phantomrecord that reads like a wedged board. That misreading is what cost this investigation its first pass.Blocker 1 (the fbuild 2.5.15 pin carrying FastLED/fbuild#1263) was resolved and merged in #3871.
refactor(autoresearch): return a typed PortPresence instead of a tuple
fix(autoresearch): allowlist COMn before interpolating into PowerShell
fix(autoresearch): use fullmatch so COM1\n cannot pass the allowlist
fix(autoresearch): allowlist COMn before interpolating into PowerShell (