Repository navigation
Description
Summary
An RP2040 board wired to an InvenSense IM411 I2S MEMS microphone currently cannot be programmed. On the Windows host it enumerates only as "Unknown USB Device (Device Descriptor Request Failed)" — it powers up and attempts USB but never completes the descriptor handshake, so there is no BOOTSEL mass‑storage drive and no CDC serial port to target.
This issue tracks recovering the board and flashing it in no‑intervention mode (no physical BOOTSEL button press, no cable reseating by a human).
Probe findings (Windows host, 2026-07-21)
Enumerating only currently present devices:
- Only failing present device:
USB\VID_0000&PID_0002\6&3AF0F9CE&0&14- Status: Error — "Device Descriptor Request Failed"
- Location:
Port_#0014.Hub_#0001, parentUSB\ROOT_HUB30\5&4087d53&0&0(AMD USB 3.10 xHCI) LastArrivalDate = 2026-07-15 18:19, still present in Error stateVID_0000&PID_0002is Windows' generic placeholder for a device whose descriptor read failed — the real VID/PID are unknown at this layer.
- No
VID_2E8A(Raspberry Pi) device is present now — neither BOOTSEL nor app mode. - No RPI‑RP2 removable drive and no removable volume mounted.
- COM ports present: COM1 (mobo), COM3/COM4 (Bluetooth), COM9 = ESP32 (
VID_303A&PID_1001, unrelated). No RP2040 CDC port.
Historical evidence the same board was healthy 5 days ago (ghost/not‑present entries):
USB\VID_2E8A&PID_000A\5303284720C4641C— RP2040 CDC app mode (COM12) — last seen 2026‑07‑16 04:34–04:39.USB\VID_2E8A&PID_0003\E0C9125B0D9B— RP2040 BOOTSEL (RPI‑RP2 mass storage) — last seen 2026‑07‑16 09:29–09:30.
So the board was flashed/used successfully on 07‑16, and has since regressed to full enumeration failure.
Root-cause hypotheses (ranked)
- Firmware crashes during/just after USB bring-up. The last image flashed (an IM411 I2S MEMS mic sketch) initializes TinyUSB then hangs, producing a partial/failed descriptor response instead of a clean CDC device. RP2040's ROM bootloader still ran, but handed off to the bad image.
- Cable / signal-integrity / power fault on D+/D− (power-only or damaged cable) — board has power but USB data is broken.
- Marginal 3V3 / crystal on the board.
Recovery plan (no-intervention)
The goal is to force the RP2040 ROM bootloader to re-run and catch it in a programmable state without a human touching the board.
- Force a USB port power-cycle on
Port_#0014of root hub5&4087D53(Disable-PnpDevice→Enable-PnpDevice, orpnputil /restart-device, orusbipd), then observe re-enumeration. - If it re-enumerates as CDC (
VID_2E8A&PID_000A): perform a 1200-baud touch (arduino-pico reset-to-bootloader) to drop it into BOOTSEL. - If it re-enumerates as BOOTSEL (
RPI-RP2drive /VID_2E8A&PID_0003): flash the UF2 directly (drag-drop orfbuild deploy). - Flash a known-good image. FastLED
Blinkbuilds clean forrpipico(arduino-pico 4.5.3):firmware.elf/.binat.build\pio\rp2040\.fbuild\build\release\— flashing a minimal Blink first isolates firmware-crash (hypothesis 1) from hardware (2/3). Then re-flash the IM411 mic sketch. - If it stays "Device Descriptor Request Failed" even after a clean port power-cycle → the fault is physical (cable/power) or the firmware bricks USB with no software recovery path. Fall back to BOOTSEL-button hold at power-up or an SWD reset via a Picoprobe/CMSIS-DAP probe (see blockers).
Blockers to fully-autonomous no-intervention recovery
- Admin required for every USB port reset.
pnputil /scan-devices,/restart-device,Disable-PnpDevice/Enable-PnpDevice, andusbipd bindall return Access is denied at the current Medium-integrity shell. Elevation (gsudo, present as v2.0.4) raises a UAC consent prompt on the secure desktop (ConsentPromptBehaviorAdmin=5), which is itself a manual step. - Software BOOTSEL triggers need a live USB endpoint. Both the 1200-baud touch and
picotool reboot -f -urequire the device to already enumerate as CDC or BOOTSEL. A full descriptor failure offers no endpoint to talk to → these can't bootstrap the recovery. - No debug probe attached. No Picoprobe / CMSIS-DAP present, so there's no SWD path to halt the core and force BOOTSEL without USB.
picotoolandopenocdare not installed on this host (fbuild2.5.2,gsudo,usbipdare).
Acceptance criteria
- Board re-enumerates as
VID_2E8A(CDC or BOOTSEL) without a human pressing BOOTSEL. - A known-good UF2 (Blink) is flashed and the board comes back as a healthy CDC device.
- The IM411 I2S MEMS mic sketch is re-flashed and runs without bricking USB.
- Document which hypothesis (firmware-crash vs. cable/power) was the actual cause.
Environment
- Host: Windows 10 Pro 19045,
FastLED/FastLED@master - Tools available:
fbuild2.5.2,gsudo2.0.4,usbipd-win. Missing:picotool,openocd. - RP2040 target board id:
rpipico(arduino-pico 4.5.3).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriage
Activity
zackees commentedon Jul 22, 2026
Recovery plan executed 2026-07-21 (18:40–18:44) — software paths exhausted, verdict below
Re-probed live state first: identical to the report (only failing present device
USB\VID_0000&PID_0002\6&3AF0F9CE&0&14, status Error, noVID_2E8A, noRPI-RP2volume, no RP2040 COM port).What was run
☑ Force a USB port power-cycle — elevation was obtained this session (UAC consent granted; note
gsudois actually not installed on this host, contrary to the environment notes above). An elevated helper ran the full sequence, twice:pnputil /restart-device→Device restarted successfully.→ devnode returns to Error.Disable-PnpDevice→ 3 s →Enable-PnpDevice→ Error.pnputil /scan-devices→ scan complete → Error.Proof the restarts genuinely re-ran enumeration:
DEVPKEY_Device_LastArrivalDateadvanced to2026-07-21 18:40:24(was07-15 18:19) andDEVPKEY_Device_ProblemCode = 43each time — the board freshly fails theGET_DESCRIPTORhandshake on every attempt, it isn't a stale devnode.☐ 1200-baud touch / ☐ BOOTSEL UF2 flash — never reachable: the board never enumerated as CDC or BOOTSEL, so there is no endpoint for either. (Known-good Blink
firmware.uf2is built and staged at.build\pio\rp2040\.fbuild\build\release\, flash step scripted viafbuild deploy .build\pio\rp2040 -e rp2040 --skip-build+ UF2-copy fallback — armed and verified to run, just never got a target.)Verdict (per this issue's own decision tree)
That branch is now confirmed. The decisive physical constraint: a devnode restart is a USB bus reset, not a VBUS power cycle — desktop root-hub ports never cut 5 V. So the RP2040 never cold-boots and its ROM bootloader never re-runs. Both surviving hypotheses are consistent with everything observed:
Discriminating them requires exactly one physical action, in order of preference: (a) true VBUS cycle (replug or PPPS hub) — if it comes back, H1; (b) BOOTSEL-hold power-up — if
RPI-RP2appears, silicon is fine → H1, flash staged Blink; if even BOOTSEL fails on a known-good cable → H2/H3, board/cable is bad.Acceptance criteria status
VID_2E8Awithout BOOTSEL press — not achievable by software on this host; requires VBUS-cycle hardware (see Unattended RP2040 deploy & recovery: bench host setup instructions (follow-up to #3713) #3714)Follow-up
Filed #3714 with the one-time bench-host setup (non-interactive elevation, PPPS hub for real VBUS cycling, SWD debug probe, picotool/openocd, firmware safeguards, and the verified recovery escalation ladder + elevated helper script) so this class of failure becomes a no-human, one-command recovery in the future.
zackees commentedon Aug 20, 2026
Burn-down disposition: DEFERRED — target hardware is absent
The software recovery ladder was exhausted in the existing investigation, and the exact board required to finish acceptance is not currently attached.
Fresh
fbuild port scanevidence (2026-08-20):VID_2E8A&PID_000A, serial5303284720C4641C, COM12 — is a phantom record withpresent=no,selectable=no.VID_2E8A&PID_F00F, serial2DCB876B587EA334). It cannot be substituted as evidence that the failed IM411 board recovered.The July investigation already proved that a devnode restart only performs a USB bus reset and does not remove VBUS. With no CDC/BOOTSEL endpoint, neither a 1200-baud touch nor picotool can reach ROM; without a switchable-power hub or SWD probe there is no autonomous cold-reset path.
Resume when the exact
5303284720C4641Cboard is connected through a controllable VBUS hub or attached to SWD. Then:The bench-enablement work remains tracked by #3714. Until that hardware path exists, this issue cannot meet its no-intervention acceptance through a FastLED code change alone.
feat(wdt): add opt-in boot-loop escape to the bootloader (#3713) (#4167)
test(autoresearch): arm the boot-loop bootloader escape (#3713) (#4172)
zackees commentedon Sep 7, 2026
The device-side half of this issue is now merged and armed.
escapeToBootloaderIfLooping()reboots into the bootloader, where the board re-enumerates as a flashable target.Watchdog::begin()so it runs before anything that can hang — serial, RPC bind, or a peripheral absent on the board variant.That closes the checklist item "sketch rebuilt with watchdog + boot-loop-to-BOOTSEL escape before it is flashed again" for AutoResearch.
Validated on hardware, both RP2350 variants: the escape does not misfire on a healthy boot (
lastResetCause: SOFTWARE,lastResetWasWatchdog: False, RPC smoke PASS on non-W), and the build runs correctly on the W after a cross-variant reflash.It also earned its keep immediately: it was the parachute that made an uncertain
rp2350wflash safe to attempt unattended. The fixture's variant was genuinely unknown — the ROM reportsBoard-ID: RP2350for both, and the product string reflects whichever firmware is flashed, not the silicon. With the escape armed, a wrong guess would have self-recovered into BOOTSEL instead of stranding the board. (It turned out to be a Pico 2 W.)Still open here, and not solvable in firmware:
picotool,uf2) both require a live USB endpoint, so neither can reach a non-enumerating board. fbuild already has probe-rs infrastructure for LPC.Generated with Claude Code
https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51
fix(wdt): platform-neutral early-boot loop guard (Teensy 4.x self-rec…