docs: correct the USB-vanish diagnosis, and write down what was measured
The previous commit asserted "the chip is wedged before either interface comes
up, not gone from USB", reasoning that the absence of enumeration errors ruled
out a host-side problem. That reasoning was wrong and the conclusion is
withdrawn.
The control that broke it: the identical signature -- disconnect, then nothing,
no errors, port reporting `state=not attached` -- was reproduced on a KNOWN GOOD
board by writing 1 then 0 to that root-hub port's `disable` from the host. The
board was healthy and doing nothing unusual; it went to `not attached` and
stayed there until physically replugged. So the log proves the host stopped
seeing a device and nothing more. A missing error message is not evidence of
absence.
That also kills the port-toggle as a recovery mechanism -- it takes healthy
boards off the bus with no way back. Recorded so nobody tries it again.
What survives measurement:
- resets through the RESET pin (double tap) have never failed: 5/5
- software resets fail in both directions, ~5/10 for `dfu` before the
USBPULLUP change, and several times for the bootloader's own reset back
into the application -- a path our firmware cannot reach at all
- so USBPULLUP is aimed at a transition, not at a diagnosed chip fault, and
n=1 since does not demonstrate anything yet
The operational rules that follow (one board at a time, never loop flashes, ask
for hands immediately, and get a hub with real per-port power switching if this
bench is to be recoverable remotely) are in tools/README.md.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
f99ae9ab18
commit
bdaf1678da
1 file changed
+13
-4
@@ -162,10 +162,19 @@ static void dfuTick() {
|
||||
// good: usb 7-9: USB disconnect -> 3 s later idProduct=0045 (bootloader)
|
||||
// bad: usb 7-6: USB disconnect -> nothing, ever
|
||||
//
|
||||
// No failed-enumeration errors, so it is not a host-side race; the board never
|
||||
// drove D+ again. And it was not sitting in the bootloader either -- a
|
||||
// bootloader in DFU mode advertises `AdaDFU`, and a BLE scan during the wedge
|
||||
// found the other boards advertising and this one absent from both interfaces.
|
||||
// CORRECTION, same evening: "no enumeration errors, therefore the board is
|
||||
// wedged" was WRONG, and worth leaving here as a warning. The identical
|
||||
// signature -- disconnect, then nothing, no errors, port reporting
|
||||
// `not attached` -- was later produced on a KNOWN GOOD board purely by
|
||||
// toggling the root-hub port's `disable` from the host. So the log tells you
|
||||
// the host stopped seeing a device; it does NOT tell you why, and a missing
|
||||
// error message is not evidence of a dead board.
|
||||
//
|
||||
// What is still true: the failure follows resets that happen with USB active,
|
||||
// in BOTH directions (app->bootloader and bootloader->app), and a reset via
|
||||
// the RESET pin -- the double tap -- has never failed. That is what this
|
||||
// change is aimed at, and it is a hypothesis about the transition, not a
|
||||
// diagnosis of the chip.
|
||||
//
|
||||
// reset_mcu() (core wiring.c) disables the SoftDevice and resets with USBD
|
||||
// still enabled and possibly mid-transfer. Detaching first drops D+ while the
|
||||
|
||||
Reference in new issue
Block a user