hil: mimxrt1064_evk host/cdc_msc_hid CDC echo reads nothing and the CH9102 serial reads 0 on master firmware
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- c, embedded-iot
- Domain
- embedded-iot, testing
Research direction
Run the master d4e2fc345 firmware on the mimxrt1064_evk board using the HIL setup, then compare the result with 9adcc9304. If it passes, bisect d4e2fc345..9adcc9304, checking the usbh commits first; if it fails, inspect the CH9102 fixture and hub port. Done when the failure is attributed to a host-stack change or the fixture.
Written by the indexing model from the issue text.
Description
Originating PR: https://github.com/hathach/tinyusb/pull/4639
Problem
On the ci.lan HIL rig, the mimxrt1064_evk host cells that use the CH9102 CDC peer fail deterministically (not intermittently). The failure reproduces on master's own firmware; #4639 changes only the ESP BSP, an ESP-relevant example and HIL harness Python and compiles nothing for mimxrt1064_evk.
Observed on ci.lan, 2026-12-04:
- CI run https://github.com/hathach/tinyusb/actions/runs/47321073632/job/145003223661 (PR head
eaeb51110):
mimxrt1064_evk host/cdc_msc_hid: Failed: CDC echo mismatch at offset 0 (57 bytes) ... received: b'' CH9102: CDC Interface is mounted: address = 1, itf_num = 0 | CDC Interface is unmounted: address = 1, itf_num = 0. Every othermimxrt1064_evkcell passed in that job. - Isolated manual runs on ci.lan (
hil_remote.py -b mimxrt1064_evk --retry 1,HIL_SHUFFLE_SEED=1796382346), each with one retry:- master
9adcc9304firmware (CI artifact of run 46740897821) with the9adcc9304harness:host/cdc_msc_hidred:CDC echo mismatch ... received: b'', CH9102 mounted then unmounted.dual/host_info_to_device_cdcred:Expected ['1a86_55d4_52D2003414', '21c4_0cc7_90005893730A1A63'], Enumerated ['1a86_55d4_0', '21c4_0cc7_90005893730A1A63']; the CH9102 reports iSerialNumber as0.host/device_infopassed in the same run and read SN52D2003414. The other 19 cells passed.
- PR firmware (byte-identical binaries for both cells:
host/cdc_msc_hid.binsha25620e9cc02...f312443,dual/host_info_to_device_cdc.bin91095bc4...5838ee): the same two cells red the same way.
- master
- History:
host/cdc_msc_hidonmimxrt1064_evklast passed on masterd4e2fc345(run 46144685233). Master runs after 2026-11-29 failed this board at flash (J-Link), so no master run has executed the test since. Master betweend4e2fc345and9adcc9304changed usbh (0fbb65599,bb670f942).
Root cause is not established. The CH9102 mounting and then unmounting, and reading iSerialNumber 0 while host/device_info reads it correctly, fit either a host-stack regression or a fixture/hub-port problem.
Remaining work
Run master d4e2fc345 firmware on the board:
- pass: bisect
d4e2fc345..9adcc9304, usbh commits first. - fail: the CH9102 fixture or hub on that port.
Why deferred
Outside #4639's scope: it touches nothing this board builds, and the failure reproduces on master firmware.
Related: #4203 (stm32f723disco host/cdc_msc_hid CDC echo reads nothing, same symptom on another board and an intermittent one); #4317 (ea4088_quickstart host peers behind the J3 hub enumerate intermittently, a missing CH340 in the same jobs; whether it is related is unknown); #4618 (frdm_k64f host/cdc_msc_hid CDC echo byte corruption against the same CH9102 peer, different symptom).
- 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