mtp: ch32v407_r0 raw early_rejection intermittently receives 12 of 239 bytes
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
- Domain
- embedded-iot, testing
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
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_rejectionintermittent, 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hathach/tinyusb
-
follow-up Port WCH USBFS Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
follow-up Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
hil-contract: a background hil_remote.py launch is killed at the Bash default 10 min timeoutPossibly taken @hathach claimed this 16 days ago. Openfollow-up Prio 📌
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
ch32v30x: debug UART loses queued bytes when its TX ring fillsPossibly taken @hathach claimed this 16 days ago. Openfollow-up Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
followup Prio 📌
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
-
Missing slice offset check in jvp_equal fast path corrupts slice comparison and aborts delpathsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 3 days
-
Difficulty 1/5 Under an hour Newbie friendliness 83/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
area9innovation/flow9#1805 ·
Maintainers usually reply within 3 days
-
AI:Robustness triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
open5gs/open5gs#5246 · 1 comment ·
Maintainers usually reply within 1 day