summaryrefslogtreecommitdiff
path: root/test/hil/tinyusb.json
diff options
context:
space:
mode:
authorhathach <[email protected]>2026-09-03 18:19:17 +0700
committerhathach <[email protected]>2026-09-04 04:03:39 +0700
commitff9767e7e0297a94f26885d8a91f273707ec9507 (patch)
treefeaf60d57049410c27dda1c9f250c8f36bbe4a06 /test/hil/tinyusb.json
parente08148b3e664c5dd5714334b7528e692e38a3f98 (diff)
hil: add ea4088_quickstart with an RTT consolehil-add-ea4088qs
The board's probe is an LPC-Link2 with no VCOM, so its console is RTT. Two host tests could not run that way: test_host_cdc_msc_hid and test_host_msc_file_explorer opened the flasher's VCOM directly instead of going through open_board_console(), and the config gate rejecting is_cdc/is_msc fixtures on "logger": "rtt" boards existed only to keep them from dying mid-run on a port that does not exist. Route both through the console abstraction and drop the gate. The reset ordering differs per console -- RTT owns the probe so the board must be reset before the console opens, a VCOM survives the reset so it opens first -- and that rule now lives in open_console_reset() instead of being spelled out at each call site. The roster entry runs device, host and dual: USB1's Type-A drives a hub with a CH340 (TX-RX shorted, for the cdc echo) and a thumbdrive, while USB2 keeps serving the device tests. BUFFER_SIZE_DOWN=128 because that echo writes up to 64 bytes at once and SEGGER's ring keeps one byte free, which the 16-byte default cannot hold; 64 measured unreliable, 128 reliable. Measured on the rig: 19 passed, 0 failed, 0 skipped. usbtest 30/30, host MSC reads 682 KB/s, device CDC/MSC ~510 kB/s (full speed behind the rig's hub).
Diffstat (limited to 'test/hil/tinyusb.json')
-rw-r--r--test/hil/tinyusb.json36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/hil/tinyusb.json b/test/hil/tinyusb.json
index 8fd4683a4..f5f722878 100644
--- a/test/hil/tinyusb.json
+++ b/test/hil/tinyusb.json
@@ -200,6 +200,42 @@
}
},
{
+ "name": "ea4088_quickstart",
+ "uid": "22150C0C1508595343E1857B060000F5",
+ "comment": "console is the LPC-Link2's RTT channel: this probe has no VCOM (rtt skill)",
+ "logger": "rtt",
+ "variant": [
+ { "name": "ea4088_quickstart", "defines": ["LOGGER=rtt"], "flags": "-DBUFFER_SIZE_DOWN=128" }
+ ],
+ "tests": {
+ "device": true,
+ "host": true,
+ "dual": true,
+ "dev_attached": [
+ {
+ "vid_pid": "1a86_7523",
+ "serial": "0",
+ "is_cdc": true,
+ "comment": "CH340 USB-serial behind the hub on USB-A J3, TX-RX shorted for the cdc echo half"
+ },
+ {
+ "vid_pid": "346d_5678",
+ "serial": "6265011211829708393",
+ "is_msc": true,
+ "block_size": 512,
+ "block_count": 3891200,
+ "msc_inquiry": "VendorCo ProductCode 2.00",
+ "comment": "USB Disk 2.0 thumbdrive behind the same hub"
+ }
+ ]
+ },
+ "flasher": {
+ "name": "jlink",
+ "uid": "611000000",
+ "args": "-device LPC4088"
+ }
+ },
+ {
"name": "lpcxpresso55s28",
"uid": "2BF1839A7D51F553A15AB03FD08F70AB",
"tests": {