diff options
| author | hathach <[email protected]> | 2026-06-19 21:37:34 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-06-19 21:37:34 +0700 |
| commit | 952ec68753960093066308eb313bd8650d78b7c9 (patch) | |
| tree | 875fefbdd573a3e788c4d74eb2558b9c5d5877a0 /test | |
| parent | ea5b8d677f22f4bd1574f864fd0487dfd329c090 (diff) | |
test/hil: add ch582m_evt to CI HIL pool
Add the device-only CH582M-EVT (WCH USBFS via the shared dcd_ch32_usbfs.c),
riscv-gcc, flashed by openocd_wch probe 7FD88F0604B5, to tinyusb.json.
Also reorder device_tests to keep examples sharing a VID:PID non-adjacent:
cdc_msc and cdc_msc_throughput both use cafe:4003, and on boards whose
CPU-reset does not drop D+ (e.g. WCH CH58x via openocd) back-to-back same-PID
firmware leaves the host on the previous example's cached descriptors, so the
new example's CDC never enumerates and the test fails. Moving dfu (cafe:4000)
between them changes the PID and forces the host to re-enumerate.
Remote HIL on ci.lan: all device examples pass, including cdc_msc_throughput
(no skip needed).
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'test')
| -rwxr-xr-x | test/hil/hil_test.py | 6 | ||||
| -rw-r--r-- | test/hil/tinyusb.json | 15 |
2 files changed, 20 insertions, 1 deletions
diff --git a/test/hil/hil_test.py b/test/hil/hil_test.py index 8ae9ee0dc..ec6c7c448 100755 --- a/test/hil/hil_test.py +++ b/test/hil/hil_test.py @@ -1490,9 +1490,13 @@ def test_device_hid_generic_inout(board): # device tests # note don't test 2 examples with cdc or 2 msc next to each other device_tests = [ + # Order matters: cdc_msc and cdc_msc_throughput share the same VID:PID (cafe:4003), so keep a + # differently-PID'd example (dfu, cafe:4000) between them. Boards whose CPU-reset does not drop + # D+ (e.g. WCH CH58x via openocd) only re-enumerate when the PID changes; back-to-back same-PID + # firmware would otherwise leave the host on the previous example's cached descriptors. 'device/cdc_dual_ports', - 'device/dfu', 'device/cdc_msc', + 'device/dfu', 'device/cdc_msc_throughput', 'device/audio_test_freertos', 'device/dfu_runtime', diff --git a/test/hil/tinyusb.json b/test/hil/tinyusb.json index 41d94bc00..ccf81c582 100644 --- a/test/hil/tinyusb.json +++ b/test/hil/tinyusb.json @@ -493,6 +493,21 @@ "uid": "BC4954081051", "args": "" } + }, + { + "name": "ch582m_evt", + "uid": "0123456789ABCDEF", + "toolchain": "riscv-gcc", + "tests": { + "device": true, + "host": false, + "dual": false + }, + "flasher": { + "name": "openocd_wch", + "uid": "7FD88F0604B5", + "args": "" + } } ], "boards-skip": [ |
