diff options
| author | hathach <[email protected]> | 2026-08-14 11:29:37 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-08-17 12:17:00 +0700 |
| commit | f75b247304397a1bd8bd60867c947c5be0f72743 (patch) | |
| tree | 1f633669512b096d21899996881d1625405439de /examples/device/dfu_runtime/src | |
| parent | 7530f13031c8e316131fe6272f7905db1245cfd9 (diff) | |
portable/nrf5x: complete zero-length bulk OUT transfersclaude/mtp-data-phase-fixes
A zero-length OUT read (e.g. the MTP driver's read for the host's
terminating data ZLP) could never complete when the ZLP's EPDATA
arrived after the read was armed: actual_len < total_len is always
false for total_len == 0, so the handler only set data_received and the
armed transfer hung forever, wedging both bulk endpoints (host sees
pure NAK; EP0 stays alive). Run the 0-byte DMA in that case to drain
the endpoint and complete the transfer, matching what the arm path
already does when the ZLP arrives first.
Found via usbmon on the HIL rig: device/mtp on feather_nrf52840_express
wedged after SendObject's terminating ZLP whenever the class armed the
read before the host's (NAK-delayed) ZLP retry landed - deterministic
under CI load, which is why PR CI only passed this test on a re-flash
retry (21.4 s vs the normal 2.2 s).
Diffstat (limited to 'examples/device/dfu_runtime/src')
0 files changed, 0 insertions, 0 deletions
