tools: support RTT capture lifecycle on Windows by HiFiPhile · Pull Request #3871 · hathach/tinyusb · GitHub
Skip to content

tools: support RTT capture lifecycle on Windows - #3871

Open
HiFiPhile wants to merge 4 commits into
masterfrom
feature/rtt-windows-lifecycle
Open

tools: support RTT capture lifecycle on Windows#3871
HiFiPhile wants to merge 4 commits into
masterfrom
feature/rtt-windows-lifecycle

Conversation

@HiFiPhile

Copy link
Copy Markdown
Collaborator

Use platform-specific process group creation and termination so J-Link, OpenOCD, and dump helpers are retired reliably on Windows as well as POSIX. Resolve Windows executable names while preserving environment overrides and report missing tools cleanly.

Add an optional stop file for ending indefinite captures from automation without signals. Cover executable selection, process cleanup, and stop-file handling in the RTT HIL tests.

Use platform-specific process group creation and termination so J-Link, OpenOCD, and dump helpers are retired reliably on Windows as well as POSIX. Resolve Windows executable names while preserving environment overrides and report missing tools cleanly.

Add an optional stop file for ending indefinite captures from automation without signals. Cover executable selection, process cleanup, and stop-file handling in the RTT HIL tests.
@chatgpt-codex-connector

Copy link
Copy Markdown

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-01T05:21:27.171876Z 82abde5 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2c32c4b6a2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/rtt.py Outdated
Comment thread tools/rtt.py Outdated
@claude

claude Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Code review

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

@github-actions

github-actions Bot commented Sep 1, 2026

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 2885 0 1252 1621 4501 +0.0%
cdc_device.c 1235 16 1092 722 1955 +0.0%
cdc_host.c 6475 487 15 926 7607 +0.0%
dcd_ch32_usbfs.c 1708 0 0 1364 3072 +0.0%
dcd_ch32_usbhs.c 1922 0 0 481 2404 +0.0%
dcd_ci_fs.c 1955 0 0 1290 3245 +0.0%
dcd_ci_hs.c 1941 0 0 779 2721 +0.0%
dcd_da146xx.c 3067 0 0 144 3211 +0.0%
dcd_dwc2.c 4230 19 0 265 4514 +0.0%
dcd_eptri.c 2281 0 0 259 2540 +0.0%
dcd_ft9xx.c 3284 0 0 172 3456 +0.0%
dcd_lpc17_40.c 1842 0 0 792 2238 +0.0%
dcd_lpc_ip3511.c 1580 0 0 264 1800 +0.0%
dcd_mm32f327x_otg.c 1474 0 0 1290 2764 +0.0%
dcd_msp430x5xx.c 1801 0 0 176 1977 +0.0%
dcd_musb.c 2667 0 0 179 2846 +0.0%
dcd_nrf5x.c 2974 0 0 292 3266 +0.0%
dcd_nuc120.c 1096 0 0 78 1174 +0.0%
dcd_nuc121.c 1170 0 0 101 1271 +0.0%
dcd_nuc505.c 0 0 1533 157 1690 +0.0%
dcd_rp2040.c 1004 0 764 653 2420 +0.0%
dcd_rusb2.c 3346 0 0 156 3502 +0.0%
dcd_samd.c 1071 0 0 266 1337 +0.0%
dcd_samg.c 1326 0 0 72 1398 +0.0%
dcd_stm32_fsdev.c 2568 0 0 291 2859 +0.0%
dfu_device.c 776 28 712 134 910 +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 182 0 0 0 182 +0.0%
hcd_ch32_usbfs.c 2491 0 0 502 2993 +0.0%
hcd_ci_fs.c 2466 0 0 469 2936 +0.0%
hcd_ci_hs.c 186 0 0 0 186 +0.0%
hcd_dwc2.c 5071 25 1 545 5642 +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 2951 0 0 245 3196 +0.0%
hcd_samd.c 2168 0 0 324 2492 +0.0%
hcd_stm32_fsdev.c 3248 0 1 420 3670 +0.0%
hid_device.c 1121 44 997 119 1240 +0.0%
hid_host.c 1244 0 0 1287 2531 +0.0%
hub.c 1380 8 8 30 1414 +0.0%
midi2_device.c 3608 34 1600 563 4183 +0.0%
midi2_host.c 1798 0 0 5876 7674 +0.0%
midi_device.c 1148 0 1007 614 1759 +0.0%
midi_host.c 1338 7 7 3449 4791 +0.0%
msc_device.c 2522 108 2293 802 3325 +0.0%
msc_host.c 1620 0 0 395 2015 +0.0%
mtp_device.c 1781 22 771 589 2378 +0.0%
ncm_device.c 1791 28 833 4393 6197 +0.0%
ohci.c 2157 0 0 2503 4660 +0.0%
printer_device.c 827 0 706 555 1380 +0.0%
rp2040_usb.c 386 35 632 11 1065 +0.0%
rusb2_common.c 160 0 16 0 176 +0.0%
tusb.c 449 0 389 3 451 +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 3708 57 92 354 4126 +0.0%
usbh.c 4971 57 81 1174 6244 +0.0%
usbtmc_device.c 2283 24 69 311 2625 +0.0%
vendor_device.c 1132 0 538 1561 2685 +0.0%
video_device.c 4477 5 1245 480 4949 +0.0%
TOTAL 126846 1053 17541 50194 179085 +0.0%

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

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

hfp-iar

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

Board usbtest cdc_msc_throughput audio_test_freertos cdc_dual_ports cdc_msc cdc_msc_freertos dfu dfu_runtime hid_boot_interface hid_generic_inout midi_test msc_dual_lun mtp printer_to_cdc duration
stm32l412nucleo ✅ 30/30 ✅ C 500/511k M 511/512k 112s
lpcxpresso43s67 ✅ 30/30 ✅ C 10.9/10.2M M 32.9/32.4M 136s
stm32f746disco ✅ 30/30 ✅ C 13.5/12.7M M 23.8/31M 134s
stm32f746disco-DMA ✅ 30/30 ✅ C 13.5/12.7M M 26.5/33.7M 87s

hfp.json

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

Board usbtest cdc_msc_throughput audio_test_freertos cdc_dual_ports cdc_msc cdc_msc_freertos dfu dfu_runtime hid_boot_interface hid_generic_inout midi_test msc_dual_lun mtp printer_to_cdc duration
stm32l412nucleo ✅ 30/30 ✅ C 501/511k M 511/511k 116s
lpcxpresso43s67 ✅ 30/30 ✅ C 12.2/10.7M M 34.5/31.4M 169s
stm32f746disco ✅ 30/30 ✅ C 13.6/12.5M M 19.6/28.4M 102s
stm32f746disco-DMA ✅ 30/30 ✅ C 14.7/12.8M M 25.4/33.5M 87s

tinyusb-esp.json

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

Board usbtest msc_file_explorer_freertos audio_test_freertos cdc_msc_freertos device_info hid_composite_freertos duration
espressif_p4_function_ev 3s
espressif_p4_function_ev-DMA 3s
espressif_s3_devkitm 3s
espressif_s3_devkitm-DMA 3s

tinyusb.json

✅ 287 passed · ❌ 94 failed · ⚪ 17 skipped · blank not run

Board usbtest cdc_msc_throughput msc_file_explorer msc_file_explorer_freertos audio_test_freertos cdc_dual_ports cdc_msc cdc_msc_freertos cdc_msc_hid device_info dfu dfu_runtime hid_boot_interface hid_generic_inout host_info_to_device_cdc midi_test msc_dual_lun mtp printer_to_cdc duration
raspberry_pi_pico_w 4s
raspberry_pi_pico2 4s
raspberry_pi_pico 11s
nanoch32v203-fsdev 9s
nanoch32v203-usbfs 8s
frdm_k64f 19s
adafruit_fruit_jam 10s
stm32g0b1nucleo ✅ 30/30 ✅ C 533/505k M 533/585k 163s
stm32u083nucleo ✅ 30/30 ✅ C 492/459k M 517/529k 157s
lpcxpresso55s28 ✅ 30/30 ✅ C 8.6/8.2M M 32.8/31.5M 210s
ek_tm4c123gxl ✅ 30/30 ✅ C 526/511k M 651/511k 217s
lpcxpresso11u37 ✅ 30/30 ✅ C 485/285k M 529/511k 243s
max32666fthr ✅ 30/30 ✅ C 7/14.3M M 17.3/20.4M 243s
metro_m4_express ✅ 30/30 ✅ C 507/511k M 511/511k 248s
ch32v103r_r1_1v0 ✅ 30/30 ✅ C 499/508k M 511/511k 258s
stm32l476disco ✅ 30/30 ✅ C 507/510k M 530/521k 274s
ch582m_evt 131s
ra4m1_ek ✅ 30/30 ✅ C 501/511k M 527/553k 348s
stm32f407disco ✅ 30/30 ✅ C 521/530k M 526/517k 401s
stm32f072disco ✅ 30/30 ✅ C 489/261k M 510/482k 424s
feather_nrf52840_express ❌ 4/30 452s
mimxrt1064_evk ✅ 30/30 ✅ C 22.9/16.2M M 35.6/32.5M 1365 KB/s 1358 KB/s 304s
stm32h743nucleo ✅ 30/30 ✅ C 507/583k M 577/554k 236s
stm32h743nucleo-DMA ✅ 30/30 ✅ C 507/516k M 511/524k 259s
nrf54lm20dk ✅ 30/30 ✅ C 1.9/4.1M M 6.7/8.1M 318s
stm32f723disco ✅ 30/30 ✅ C 500/509k M 511/511k 13443 KB/s 3942 KB/s 319s
stm32f723disco-DMA ✅ 30/30 ✅ C 507/516k M 511/511k 14563 KB/s 3942 KB/s 218s
ch32v307v_r1_1v0-usbhs ✅ 30/30 ✅ C 7/7.4M M 18.8/13.4M 386s
ch32v307v_r1_1v0-usbfs ✅ 30/30 ✅ C 507/510k M 511/511k 133s

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93dd943b25

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/rtt.py Outdated
Comment thread tools/rtt.py Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 50eaa94033

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tools/rtt.py Outdated
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.

1 participant