Skip to content

RP2040 (IM411 I2S MEMS mic board) fails USB enumeration — recover & flash in no-intervention mode #3713

Open

Description

@zackees

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, parent USB\ROOT_HUB30\5&4087d53&0&0 (AMD USB 3.10 xHCI)
    • LastArrivalDate = 2026-07-15 18:19, still present in Error state
    • VID_0000&PID_0002 is 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)

  1. 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.
  2. Cable / signal-integrity / power fault on D+/D− (power-only or damaged cable) — board has power but USB data is broken.
  3. 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_#0014 of root hub 5&4087D53 (Disable-PnpDevice → Enable-PnpDevice, or pnputil /restart-device, or usbipd), 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-RP2 drive / VID_2E8A&PID_0003): flash the UF2 directly (drag-drop or fbuild deploy).
  • Flash a known-good image. FastLED Blink builds clean for rpipico (arduino-pico 4.5.3): firmware.elf/.bin at .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, and usbipd bind all 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 -u require 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.
  • picotool and openocd are not installed on this host (fbuild 2.5.2, gsudo, usbipd are).

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: fbuild 2.5.2, gsudo 2.0.4, usbipd-win. Missing: picotool, openocd.
  • RP2040 target board id: rpipico (arduino-pico 4.5.3).

Activity

  1. zackees commented on Jul 22, 2026

    @zackees
    MemberAuthor

    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, no VID_2E8A, no RPI-RP2 volume, no RP2040 COM port).

    What was run

    ☑ Force a USB port power-cycle — elevation was obtained this session (UAC consent granted; note gsudo is actually not installed on this host, contrary to the environment notes above). An elevated helper ran the full sequence, twice:

    1. pnputil /restart-device → Device restarted successfully. → devnode returns to Error.
    2. Disable-PnpDevice → 3 s → Enable-PnpDevice → Error.
    3. pnputil /scan-devices → scan complete → Error.
    4. Second pass with a 10-second disable window → Error.

    Proof the restarts genuinely re-ran enumeration: DEVPKEY_Device_LastArrivalDate advanced to 2026-07-21 18:40:24 (was 07-15 18:19) and DEVPKEY_Device_ProblemCode = 43 each time — the board freshly fails the GET_DESCRIPTOR handshake 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.uf2 is built and staged at .build\pio\rp2040\.fbuild\build\release\, flash step scripted via fbuild 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)

    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.

    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:

    • H1 (firmware wedge): the IM411 sketch hangs before/during TinyUSB bring-up; a bus reset can't un-wedge a core that isn't servicing USB, and power never drops.
    • H2/H3 (cable/power/crystal): equally consistent — D+/D− never delivers a valid descriptor.

    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-RP2 appears, 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

    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.

  2. zackees commented on Aug 20, 2026

    @zackees
    MemberAuthor

    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 scan evidence (2026-08-20):

    • The original RP2040 app-mode identity from this issue — VID_2E8A&PID_000A, serial 5303284720C4641C, COM12 — is a phantom record with present=no, selectable=no.
    • COM18 is healthy, but it is a different RP-class device (VID_2E8A&PID_F00F, serial 2DCB876B587EA334). It cannot be substituted as evidence that the failed IM411 board recovered.
    • The Windows Code 43 node is still present but has no recoverable RP2040 CDC/BOOTSEL endpoint.

    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 5303284720C4641C board is connected through a controllable VBUS hub or attached to SWD. Then:

    1. force ROM BOOTSEL without a manual replug,
    2. flash the staged known-good Blink UF2 and verify healthy CDC enumeration,
    3. rebuild the IM411 firmware with the RP watchdog / boot-loop escape enabled,
    4. flash it and prove repeated reset/recovery cycles without USB wedging.

    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.

  3. added
    deferred
    on Aug 20, 2026
  4. zackees commented on Sep 7, 2026

    @zackees
    MemberAuthor

    The device-side half of this issue is now merged and armed.

    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 rp2350w flash safe to attempt unattended. The fixture's variant was genuinely unknown — the ROM reports Board-ID: RP2350 for 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:

    Generated with Claude Code

    https://claude.ai/code/session_01KkufoNxfnNRU9psT3R9F51

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

    deferred

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions