mtp: ch32v407_r0 raw early_rejection intermittently receives 12 of 239 bytes

Open
#4,495 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c

Research direction

Start by reproducing the intermittent early_rejection failure with repeated MTP runs on ch32v407_r0 (wch_hs2, USBHS1). Capture the failing USB exchange with usbmon or a sniffer, then determine whether the short data block comes from the DCD or the MTP class's early response path. The task is done when the cause is identified and the failure is reproducible or the captured evidence localizes it.

Written by the indexing model from the issue text.

Description

follow-up Prio 📌

From #4483: the MTP raw test early_rejection failed once on ch32v407_r0 (wch_hs2, USBHS1).

Evidence

  • Dev PC bench, 2026-11-10, about 1 failure in 10 full runs: early_rejection: FAIL RawError: data block declares 239 bytes, received 12, after a successful flash.
  • Six MTP-only reruns passed. The other raw cases (cancel_mid_send_object, device_reset_mid_send_object, short_send_object_retry, object_info_replacement, device_reset_undrained_in) passed in the failing run.
  • Related: #4107 (nrf5340dk early_rejection intermittent, different symptom).

Uncertain

Not investigated: whether the short data block comes from the DCD (a short IN completion) or the MTP class's early-response path.

Remaining work

Reproduce with repeated MTP runs on ch32v407_r0, capture the failing exchange (usbmon or sniffer), and place it in the DCD or the class.

Dominant language
C
Stars
7.3k
Forks
1.6k
Avg merge
1d 19h
Merged PRs (30d)
67

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from hathach/tinyusb

All issues in hathach/tinyusb

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.