Skip to content

hil: use stlink for stm32f746disco#3768

Merged
hathach merged 1 commit into
masterfrom
hil_stlink
Jul 10, 2026
Merged

hil: use stlink for stm32f746disco#3768
hathach merged 1 commit into
masterfrom
hil_stlink

Conversation

@HiFiPhile

Copy link
Copy Markdown
Collaborator

Reflashed it back to STLink, hope it's more stable.

Signed-off-by: HiFiPhile <admin@hifiphile.com>
Copilot AI review requested due to automatic review settings July 10, 2026 12:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the HIL hardware configuration for stm32f746disco to use an ST-Link probe instead of a J-Link, aligning the test rig with the reflashed ST-Link firmware for improved stability.

Changes:

  • Switch stm32f746disco flasher from jlink to stlink in the HIL config.
  • Update the probe UID accordingly and drop the J-Link -device ... argument (not needed for the ST-Link flashing path).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@claude

claude Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@github-actions

Copy link
Copy Markdown

Size Difference Report

Because TinyUSB code size varies by port and configuration, the metrics below represent the averaged totals across all example builds.

Note: If there is no change, only one value is shown.

Changes >1% in size

No entries.

Changes <1% in size

No entries.

No changes
file .text .rodata .data .bss size % diff
audio_device.c 2890 0 1259 1623 4508 +0.0%
cdc_device.c 1236 16 1092 728 1963 +0.0%
cdc_host.c 6399 487 15 971 7594 +0.0%
dcd_ch32_usbfs.c 1659 0 0 2444 4103 +0.0%
dcd_ch32_usbhs.c 1892 0 0 481 2373 +0.0%
dcd_ci_fs.c 1924 0 0 1290 3214 +0.0%
dcd_ci_hs.c 1756 0 0 1344 2534 +0.0%
dcd_da146xx.c 3067 0 0 144 3211 +0.0%
dcd_dwc2.c 4223 19 0 265 4506 +0.0%
dcd_eptri.c 2273 0 0 259 2532 +0.0%
dcd_ft9xx.c 3284 0 0 172 3456 +0.0%
dcd_khci.c 1952 0 0 1290 3242 +0.0%
dcd_lpc17_40.c 1481 0 0 648 1805 +0.0%
dcd_lpc_ip3511.c 1463 0 0 264 1683 +0.0%
dcd_mm32f327x_otg.c 1477 0 0 1290 2767 +0.0%
dcd_msp430x5xx.c 1801 0 0 176 1977 +0.0%
dcd_musb.c 2595 0 0 179 2773 +0.0%
dcd_nrf5x.c 2939 0 0 292 3231 +0.0%
dcd_nuc120.c 1096 0 0 78 1174 +0.0%
dcd_nuc121.c 1170 0 0 101 1270 +0.0%
dcd_nuc505.c 0 0 1533 157 1690 +0.0%
dcd_rp2040.c 840 0 764 653 2257 +0.0%
dcd_rusb2.c 2918 0 0 156 3074 +0.0%
dcd_samd.c 1036 0 0 266 1302 +0.0%
dcd_samg.c 1322 0 0 72 1394 +0.0%
dcd_stm32_fsdev.c 2543 0 0 291 2834 +0.0%
dfu_device.c 776 28 712 136 912 +0.0%
dfu_rt_device.c 157 0 134 0 157 +0.0%
dwc2_common.c 603 22 0 0 615 +0.0%
ecm_rndis_device.c 1067 0 1 2759 3826 +0.0%
ehci.c 2763 0 0 6274 7783 +0.0%
fsdev_common.c 180 0 0 0 180 +0.0%
hcd_ch32_usbfs.c 2491 0 0 502 2993 +0.0%
hcd_ci_hs.c 181 0 0 0 181 +0.0%
hcd_dwc2.c 5071 25 1 545 5642 +0.0%
hcd_khci.c 2443 0 0 454 2897 +0.0%
hcd_musb.c 3071 0 0 157 3228 +0.0%
hcd_pio_usb.c 262 0 240 0 502 +0.0%
hcd_rp2040.c 1996 17 4 321 2338 +0.0%
hcd_rusb2.c 2923 0 0 245 3168 +0.0%
hcd_samd.c 2220 0 0 324 2544 +0.0%
hcd_stm32_fsdev.c 3248 0 1 420 3670 +0.0%
hid_device.c 1124 44 997 119 1242 +0.0%
hid_host.c 1246 0 0 1270 2516 +0.0%
hub.c 1384 8 8 30 1419 +0.0%
midi2_device.c 3006 34 1342 561 3579 +0.0%
midi2_host.c 1802 0 0 5921 7723 +0.0%
midi_device.c 1149 0 1007 619 1765 +0.0%
midi_host.c 1339 7 7 3538 4880 +0.0%
msc_device.c 2527 108 2293 804 3331 +0.0%
msc_host.c 1633 0 0 395 2028 +0.0%
mtp_device.c 1713 22 743 589 2309 +0.0%
ncm_device.c 1766 28 821 4393 6172 +0.0%
ohci.c 1925 0 0 2503 4428 +0.0%
printer_device.c 828 0 706 560 1387 +0.0%
rp2040_usb.c 386 35 619 11 1051 +0.0%
rusb2_common.c 160 0 16 0 176 +0.0%
tusb.c 457 0 389 3 459 +0.0%
tusb_fifo.c 855 0 486 0 850 +0.0%
typec_stm32.c 1230 8 2 19 1255 +0.0%
usbc.c 500 2 20 166 688 +0.0%
usbd.c 3536 57 90 355 3955 +0.0%
usbh.c 4979 57 82 1165 6250 +0.0%
usbtmc_device.c 2261 24 69 313 2606 +0.0%
vendor_device.c 639 0 534 559 1197 +0.0%
video_device.c 4433 5 1235 480 4905 +0.0%
TOTAL 125566 1053 17222 52144 179274 +0.0%

@github-actions

Copy link
Copy Markdown

Hardware-in-the-loop (HIL) Test Report

hfp-iar

✅ 52 passed · ❌ 0 failed · ⚪ 0 skipped · blank not run

Board cdc_dual_ports cdc_msc dfu cdc_msc_throughput audio_test_freertos dfu_runtime cdc_msc_freertos hid_boot_interface msc_dual_lun hid_generic_inout printer_to_cdc midi_test mtp
stm32l412nucleo ✅ CDC 628k/388k MSC 800k/745k
stm32f746disco ✅ CDC 13.6M/9.2M MSC 15.8M/26.3M
stm32f746disco-DMA ✅ CDC 13.1M/9.3M MSC 15.6M/30.4M
lpcxpresso43s67 ✅ CDC 11.6M/11M MSC 31.7M/35.2M

hfp.json

✅ 52 passed · ❌ 0 failed · ⚪ 0 skipped · blank not run

Board cdc_dual_ports cdc_msc dfu cdc_msc_throughput audio_test_freertos dfu_runtime cdc_msc_freertos hid_boot_interface msc_dual_lun hid_generic_inout printer_to_cdc midi_test mtp
stm32l412nucleo ✅ CDC 634k/386k MSC 844k/815k
stm32f746disco ✅ CDC 13.8M/10.2M MSC 15.6M/28.6M
stm32f746disco-DMA ✅ CDC 13.8M/9.9M MSC 15.8M/30.4M
lpcxpresso43s67 ✅ CDC 12.7M/12.2M MSC 33.4M/35.1M

tinyusb.json

✅ 263 passed · ❌ 76 failed · ⚪ 11 skipped · blank not run

Board cdc_dual_ports cdc_msc dfu cdc_msc_throughput audio_test_freertos dfu_runtime cdc_msc_freertos hid_boot_interface msc_dual_lun hid_generic_inout printer_to_cdc midi_test mtp host_info_to_device_cdc cdc_msc_hid msc_file_explorer msc_file_explorer_freertos device_info hid_composite_freertos
ek_tm4c123gxl
espressif_p4_function_ev rd 409KB/s
espressif_p4_function_ev-DMA rd 409KB/s
espressif_s3_devkitm rd 409KB/s
espressif_s3_devkitm-DMA
feather_nrf52840_express
max32666fthr
metro_m4_express ✅ CDC 528k/594k MSC 681k/533k
mimxrt1015_evk ✅ CDC 22.5M/12.2M MSC 33.3M/30.5M
mimxrt1064_evk ✅ CDC 23.2M/18.6M MSC 35.4M/33.6M rd 1368KB/s rd 1365KB/s
lpcxpresso11u37 ✅ CDC 508k/286k MSC 512k/511k
ra4m1_ek ✅ CDC 516k/508k MSC 602k/566k
raspberry_pi_pico ✅ CDC 508k/512k MSC 493k/519k rd 62KB/s rd 62KB/s
raspberry_pi_pico_w rd 1106KB/s rd 1022KB/s
raspberry_pi_pico2 rd 1110KB/s rd 1022KB/s
adafruit_fruit_jam ✅ CDC 508k/512k MSC 498k/518k rd 62KB/s rd 62KB/s
stm32f072disco ✅ CDC 428k/290k MSC 533k/482k
stm32f407disco ✅ CDC 512k/543k MSC 541k/548k
stm32f723disco
stm32f723disco-DMA
stm32h743nucleo ✅ CDC 521k/556k MSC 535k/550k
stm32h743nucleo-DMA ✅ CDC 946k/512k MSC 1M/511k
stm32g0b1nucleo ✅ CDC 516k/510k MSC 602k/513k
stm32l476disco ✅ CDC 516k/503k MSC 549k/561k
stm32u083nucleo ✅ CDC 507k/428k MSC 512k/540k
nanoch32v203-fsdev ✅ CDC 508k/512k MSC 511k/511k
nanoch32v203-usbfs ✅ CDC 469k/472k MSC 575k/541k
ch32v103r_r1_1v0 ✅ CDC 508k/509k MSC 597k/574k
ch582m_evt ✅ CDC 232k/222k MSC 492k/502k

@github-actions

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected across 2404 targets. View Project Dashboard →

@hathach hathach left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I re-org the hil pool, changing to other pcie card controller to go around the 32 slot limit. But the moschip controlelr (pure ehci) is buggy, and cause lots of hung/stuck device. The renesas xhci controller is much more stable. I guess I need to do the pcie splitter instead.

@hathach hathach merged commit 4354b24 into master Jul 10, 2026
663 of 679 checks passed
@hathach hathach deleted the hil_stlink branch July 10, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants