Commit Graph

135 Commits

Author SHA1 Message Date
e88fc441dd hil: split hil_test.py into hil_lock/hil_flash, add pool_check, update rig probes (#3794)
test/hil: add board-pool health check, split hil_test into focused modules (#3794)

Add test/hil/hil_pool_check.py: per-board rig health scan — probe presence,
light-example flash (dfu_runtime; device_info + serial check for host-only
boards), uid re-enumeration, safe recovery (probe authorized-toggle, board
reset), verified board_test re-park, USB topology report, and a markdown
summary table. Missing firmware is built on the spot (tools/build.py, idf.py
for espressif, one get_deps retry); row statuses: ok, flash-failed, failed,
locked. Board locks are always respected, never bypassed.

Refactor hil_test.py into hil_lock.py (flock protocol, controller permits,
hold/release/status CLI; replaces board_lock.py) and hil_flash.py (flashers,
find_firmware, run_cmd). Update WCH probe uids and the board roster in
tinyusb.json; add the hil-pool-check skill.
2026-07-29 17:29:59 +07:00
1d915b6b59 bsp, hil: flash WCH boards with the unified OpenOCD fork (#3791)
bsp, hil: flash with the unified OpenOCD fork

https://github.com/hathach/openocd (branch tinyusb) is mainline plus every
config these boards need: RPi RP2350, ADI max32/max78, the MounRiver WCH
configs, and the wlinke adapter on mainline's riscv target. It is a superset
of the vendor forks, so one 'openocd' covers all boards; -DOPENOCD=/OPENOCD=
still select another, msdk's when MAXIM_PATH is set.

Drops family_flash_openocd_wch and the OPENOCD_WCH pair, dedups
family_flash_openocd_adi, aligns ch583's work area, and points hil at the
flasher's own config instead of generating one per probe.

Verified: HIL green on all four WCH boards and max32666fthr.
2026-07-28 12:50:28 +07:00
c6a1c66f8a docs: make CLAUDE.md the real agent-instructions file (#3769)
* docs: make CLAUDE.md the real agent-instructions file
2026-07-21 12:35:00 +07:00
44b0ee0539 get freertos working with rp2040 2026-04-14 10:51:20 +07:00
f17da1c66e open hub mtt interface in 1 call 2026-03-07 15:25:05 +07:00
c59447faa8 clean up 2026-02-12 12:15:26 +07:00
26ca4e232b reverse pma size check to reduce duplication 2026-02-05 14:22:00 +07:00
8452dfe305 clean up 2026-01-09 11:58:12 +07:00
e5c53f02c5 minor update 2026-01-06 11:09:22 +07:00
df6f136003 add linkermap to deps and linkermap taget 2025-12-01 14:46:47 +07:00
7ee288bc22 change armgcc setup to manual download due to issue with action (#3377)
* change armgcc setup to manual download due to issue with action
* build windows, macos with cmake as well
2025-11-29 01:41:30 +07:00
e0ee32ce6a fix build with west zephyr 2025-10-13 16:46:02 +07:00
cc19c02f86 dwc2: wait for ahb idle before core reset 2025-09-15 15:47:06 +07:00
9290788a23 add at32 to README.rst, rename at32 board to lower case, correct name to match mcu, add meta data 2025-08-01 22:10:12 +07:00
e598972438 add board_vbus_set() for samd21/d51 to enable usb host vbus
enable host example build for samd21/d51
2025-07-09 16:01:11 +07:00
809af3e74c chore(usbh): change removing_hubs to array instead of bitmask 2025-05-06 15:58:07 +07:00
e7d4b5c9e7 add enum for set addr recovery 2025-04-29 20:16:50 +07:00
fc43eeddf2 attach debouncing fixed issue with port1 highspeed on imxrt 2025-04-29 10:11:20 +07:00
b5b7a4be60 hub check status before get 1st device descriptor 2025-04-24 22:21:38 +07:00
741cb3cf02 rename hcd_devtree_info_t to tuh_bus_info_t, hcd_devtree_get_info to hcd_bus_info_get
streamline bus info to usbh_devies, also replace dev0 (renamed to dev0_bus)
2025-04-23 12:35:32 +07:00
5531de4f2c add clion debugserver 2025-03-26 23:20:00 +07:00
7dbad0a23e add adafruit metro rp2350 2025-03-04 22:42:27 +07:00
882cb1406d update cmake.xml 2025-01-25 23:50:09 +07:00
31071ccf0e kind of work with zephyr with pca10056 with cmake -DBUILD_ZEPHYR 2025-01-23 17:10:48 +07:00
ad0ac6780d change OPT_MCU_RAXXX, fix missing prototype warnings. 2024-12-13 17:33:21 +07:00
4d1f945096 rasc ra2a1_ek, but usb does not seem to work. Note fsp.ld need extra 0x100 byte for ROM registers to work. 2024-12-12 23:31:16 +07:00
69dd473a4c more migrate to ra smart configurator 2024-12-12 13:17:15 +07:00
6cc2c98daf correct clock setting for h563 nucleo 2024-12-06 16:12:19 +07:00
dbc2c8d972 Fix missing protoype warning, change TUD_EPBUF_TYPE_DEF order (#2889)
* change TUD_EPBUF_TYPE_DEF order
* add and fix -Wmissing-prototypes warnings  for   cmake (skip  make)
2024-11-27 18:28:12 +07:00
c09eedaf24 try to fix circleci with kinetis 2024-11-25 17:45:54 +07:00
42ead3a8e0 hil cleanup flahser 2024-11-13 13:37:29 +07:00
48b32f5d1e enable host dwc2 dma by default 2024-11-07 15:18:09 +07:00
1f18be93db change the tusb_rhport_init_t struct, exclude the rhport to make API more consistent 2024-10-14 18:27:52 +07:00
ba3a5b4374 clion files 2024-10-10 10:48:25 +07:00
599bb0c822 improving dwc2, merging diep and doep if possible 2024-10-10 00:08:45 +07:00
87f1993304 esp32p4 use port0 as fs, port1 as highspeed 2024-09-30 11:53:19 +07:00
67e5577b42 added p4, seems to work well and enumerated 2024-09-30 11:53:18 +07:00
c419b1e7c5 add pico2 rp2350 (arm) board
add pico2 to hil ci
2024-09-13 19:12:26 +07:00
3ab63fbc65 remove vendor ep_addr, use stream api instead 2024-09-10 18:27:22 +07:00
8e3093e06f update cmake profile 2024-08-16 08:21:20 +07:00
ad411b6c25 minor update to cmake profile 2024-08-13 10:55:17 +07:00
57c26fdc72 use EP_KIND for STATUS OUT to fix OUT packet is auto accepted after SETUP without usbd consent 2024-08-08 00:27:51 +07:00
6bb59eeb3f add lpc11u37 for hil rpi 2024-07-19 22:33:53 +07:00
94454684f7 add ra4m1 ek for hil test 2024-07-19 11:29:48 +07:00
57a08200fc add family cmake/make for da1469x boards 2024-07-17 19:28:59 +07:00
4396ecd22c change COMPILE_DEFINE to CFLAGS_CLI for cmake/make 2024-06-25 11:31:19 +07:00
f9cd5ccdf0 skip examples for ch32v203g6 2024-06-21 18:50:44 +07:00
ab55bc077d update cmake.xml 2024-06-21 16:09:08 +07:00
90deeddf3d add c6 devkit, tested with max3421e 2024-06-06 15:49:20 +07:00
daffb24111 minor clean up 2024-05-24 14:13:58 +07:00