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) <noreply@anthropic.com>
This commit is contained in:
hathach
2026-06-19 21:37:34 +07:00
parent ea5b8d677f
commit 952ec68753
2 changed files with 20 additions and 1 deletions

View File

@ -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',

View File

@ -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": [