Commit Graph

10558 Commits

Author SHA1 Message Date
460ce56f40 hil: add audio test, optimize log print
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-12 22:18:05 +02:00
1f662779c4 dcd/dwc2: fix ISO IN endpoint become disabled after incomplete transfer
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-12 19:57:09 +02:00
4e64f3e91c Merge pull request #3632 from hathach/msc_os
hcd/dwc2: fix txfifo full check
2026-05-11 16:02:50 +02:00
dcd2a4bd0f Merge pull request #3630 from nminaylov/ncm_packet_filter
NCM: support for SetEthernetPacketFilter and SetNTBInputSize request
2026-05-10 00:49:14 +02:00
040ee395d4 reduce NTM size
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-08 18:57:09 +02:00
216d7c43f1 lpc55 works with net_lwip
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-08 18:16:04 +02:00
439e0975e1 fix iperf server is always excluded
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-08 18:15:40 +02:00
de112b06a1 Merge pull request #3633 from hathach/fix/nrf5x-hfclk-wait-post-sd
nrf5x: request HFCLK in USB_EVT_READY to fix post-SoftDevice deadlock
2026-05-08 21:59:40 +07:00
6af4ee2c50 nrf5x: request HFCLK in USB_EVT_READY to fix post-SoftDevice deadlock
USB_EVT_DETECTED runs hfclk_enable() which, when SoftDevice is not yet
enabled, starts HFXO via direct CLOCK register access. After
sd_softdevice_enable() takes over CLOCK, HFXO is physically off again
and SD's HFCLK reference count is 0.

If USB_EVT_READY is fired post-SD (e.g. on nRF52 via Bluefruit's
usb_softdevice_post_enable() when the pre-SD nrfx_power READY callback
didn't get to run before nrfx_power was uninited), the wait loop
'while (!hfclk_running()) {}' calls sd_clock_hfclk_is_running() which
returns false forever -> deadlock that blocks both USB enumeration and
any further app code on the calling thread.

Call hfclk_enable() right before the wait so HFCLK is requested in
whichever context (SD or direct) is current. hfclk_enable() is
idempotent.

Reproduces reliably with bleuart on Feather nRF52840 Express flashed
via JLink: chip wedges in sd_clock_hfclk_is_running SVC, no USB
enumeration, no BLE advertising. With the fix, USB enumerates and BLE
advertises as expected.
2026-05-08 21:27:53 +07:00
2471cbc286 fixup
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-08 13:53:09 +02:00
21fbee1e63 Merge remote-tracking branch 'tinyusb/master' into ncm_packet_filter
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-08 13:13:08 +02:00
d21fdd98f3 Merge pull request #3614 from HakanL/midi-host-rx-bufsize-default-and-docs
midi host:  document drain requirement of RX FIFO
2026-05-07 12:42:42 +02:00
89c7075cdf Merge remote-tracking branch 'tinyusb/master' into midi-host-rx-bufsize-default-and-docs 2026-05-07 11:18:19 +02:00
e557f94c72 revert RX buffer size as it's not related to issue
Even if CFG_TUH_MIDI_RX_BUFSIZE=100*TUH_EPSIZE_BULK_MAX, calling tuh_midi_stream_read without a loop  can return only one 4-byte packet and preventing subsequent transfer.

Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-05-07 11:17:57 +02:00
3188ed4fd6 modernize script
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-05-06 10:03:32 +02:00
c13481a4c3 try to fix CI stuck
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-05-05 15:03:25 +02:00
f61b99f479 Apply suggestions from code review
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-05 11:36:41 +02:00
9b1b781c3e Merge pull request #3627 from hathach/merge-usbd-control
Refactor USB control transfer handling into `usbd.c`
2026-05-05 15:08:41 +07:00
17d24b397f hcd/dwc2: fix txfifo full check
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-04 20:10:58 +02:00
076fd79b4c Adjust RAM configuration for nrf54h20 to optimize memory usage in video examples 2026-05-04 22:13:14 +07:00
77258a35ef add default implementation for tuh_hid_report_received_cb() 2026-05-04 19:42:28 +07:00
fc0747c2a7 hil remove hub from pico native host test for now 2026-05-04 19:39:46 +07:00
3170fa0bf2 Merge pull request #3568 from hathach/copilot/upgrade-net-lwip-webserver-descriptors
net: replace CFG_TUD_NET_ENDPOINT_SIZE with actual descriptor-based ep size
2026-05-04 14:16:15 +07:00
f6a263e523 Merge branch 'master' into merge-usbd-control 2026-05-04 14:15:14 +07:00
e954302c10 fix usbd control to support wLength hack 2026-05-04 13:39:39 +07:00
2a8e659bb9 hil_test: use non-blocking writes with timeout for printer tests 2026-05-04 12:12:45 +07:00
9d68ed65f7 refactor: replace tu_edpt_state_t struct with uint8_t and update all endpoint state handling methods and accesses 2026-05-04 12:11:03 +07:00
a5e9ce5fbb refactor usbd.c: extract process_std_device_request for clarity 2026-05-04 10:29:29 +07:00
25ddb7ff0c minor clean up 2026-05-04 09:22:11 +07:00
84e2e6d118 Merge pull request #3628 from hathach/fix_uart_write
ensure board_uart_write return -1 on default
2026-05-04 08:57:27 +07:00
eb66712196 refactor usbd.c: centralize control transfer state management into _usbd_dev structure and remove usbd_control_reset 2026-05-04 08:55:08 +07:00
db084551cf add msc_file_explorer_freertos example
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-05-03 20:25:40 +02:00
ea2de8be7e Merge branch 'master' into copilot/upgrade-net-lwip-webserver-descriptors 2026-05-03 14:36:25 +02:00
5951d07ad9 Merge remote-tracking branch 'origin/master' into ncm_packet_filter 2026-05-01 13:58:17 +02:00
8db6084aca ncm: implement GetNtbInputSize request
Signed-off-by: HiFiPHile <admin@hifiphile.com>
2026-05-01 13:54:22 +02:00
ddb81076a4 ncm: Implement SetNtbInputSize request
According to NCM standard 7.2.7, the device should tell the host its maximum size of NTB. Implement SetNtbInputSize according to it.
Without this commit, some OS may failed to enumerate the NCM device (e.g., IOS 26).

Signed-off-by: Elwin Huang <elwin@asiarf.com>
2026-04-30 15:36:30 +02:00
2931121b07 refactor capability
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-04-30 15:03:09 +02:00
7cfa0d1b97 add packet filter callback
Co-authored-by: Copilot <copilot@github.com>
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-04-30 14:56:13 +02:00
4e7db9c60d fixup
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-04-29 22:11:36 +02:00
4722252558 ensure board_uart_write return -1 on default
Signed-off-by: HiFiPhile <admin@hifiphile.com>
2026-04-29 22:00:05 +02:00
9d3ad336bf deprecated usbd_control.c and merge its functionality into usbd.c 2026-04-29 17:27:59 +07:00
939c2f91c2 Merge pull request #3619 from hathach/hil_hfp
run my HIL on gcc build
2026-04-29 16:14:33 +07:00
5845df2e08 Merge pull request #3615 from kira-live/master
fix zero wLength request in control request
2026-04-29 16:13:51 +07:00
2c6d42771e clean up 2026-04-29 15:43:01 +07:00
f53a9ec9af Merge branch 'master' into hil_hfp 2026-04-29 15:01:16 +07:00
d529c5321f clean up 2026-04-29 14:56:47 +07:00
ecbe37c19f Merge branch 'master' into fork/kira-live/master 2026-04-29 13:15:24 +07:00
0969778896 Merge pull request #3624 from hathach/update-agents-md
AGENTS.md cleanup, add hil and code-size skills, harden hil_ci.sh
2026-04-29 13:14:07 +07:00
17572a960a metrics_compare_base: use git worktree add --detach
`git worktree add <path> <branch>` fails if <branch> is already checked out
elsewhere (main repo, another worktree). --detach checks out the ref at a
detached HEAD instead of claiming the branch, making the script work
regardless of what is currently checked out.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 12:59:40 +07:00
6ba8aeff16 metrics_compare_base: catch TimeoutExpired; fix code-size skill docs
- run() now catches subprocess.TimeoutExpired (only triggered by `cmake --build`'s
  timeout=600) and returns CompletedProcess(rc=124) so the caller falls through to
  error reporting and worktree cleanup instead of crashing with a traceback.
- code-size SKILL.md: document the actual default filter (per-side absolute
  <checkout>/src/ path, not the old `tinyusb/src` substring) and adjust the
  reporting guidance to match what the report rows actually contain.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-29 12:45:55 +07:00