Commit Graph

1930 Commits

Author SHA1 Message Date
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
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
25ddb7ff0c minor clean up 2026-05-04 09:22:11 +07: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
2931121b07 refactor capability
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-04-30 15:03:09 +02:00
3792a9a387 fix warning, change hil jlink for feather nrf52840 2026-04-28 16:38:36 +07:00
dd10717153 max32 change bulk endpoint to EP8,9 (2KB FIFO) and Audio ISO to EP10, 11 (4KB FIFO) 2026-04-26 11:42:52 +07:00
5ba472d5c9 shrink cdc_msc_throughput MSC buffer for FS targets
CFG_TUD_MSC_EP_BUFSIZE: 4096 → (HS ? 4096 : 1024). Keep the big buffer for
HS where it actually amortises CBW overhead at iperf-class throughput; FS
peaks around ~830 kBps so 1 KB is plenty and the example now fits on
small-RAM MCUs (lpc11/13, samd11, kinetis_kl, stm32f0/l0, stm32f1, etc.).
Also dedupe CDC_TX_BUFSIZE = CDC_RX_BUFSIZE.

Drops the previously-needed skip.txt — verified builds locally on
lpcxpresso1347, cynthion_d11, lpcxpresso11u37/u68, stm32f072disco/eval,
frdm_kl25z, stm32l052dap52.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 10:14:31 +07:00
ef2f24cddb skip cdc_msc_throughput on small-RAM MCUs
The example uses 4 KB MSC bulk buffer + 2-4 KB CDC buffers to push USB
throughput, which overflows on lpcxpresso1347 (RamUsb2) and cynthion_d11.
Skip the same MCU set as net_lwip_webserver — these targets don't have
the RAM headroom to benefit from throughput tuning anyway.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 09:50:47 +07:00
bafce337f7 gate lwIP throughput tuning + iperf on MCU SRAM tier
The bigger TCP_WND/PBUF_POOL/MEMP_NUM_TCP_SEG and the always-on iperf
overflowed SRAM on stm32c0/f1/wb, lpc11/13, samd11. Add LWIP_HIGH_THROUGHPUT
gate (defined in tusb_config.h, consumed by lwipopts.h) so RAM-tight MCUs
keep the original modest buffers and skip iperf, while RAM-rich targets
(max32*/stm32f2/f4/f7/h5/h7/h7rs/u5/n6, rp2040, mimxrt1xxx, nrf5x) keep
the throughput tuning needed for the iperf HIL test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-26 09:43:58 +07:00
2dc90e364a Merge branch 'master' into musb-followup-3594
# Conflicts:
#	src/common/tusb_types.h
#	src/portable/mentor/musb/dcd_musb.c
2026-04-25 23:00:48 +07:00
4c7fd70e53 Merge pull request #3597 from canokeys/big-endian-for-setup-packets
fix #3596: big-endian host support for SETUP packet handling
2026-04-24 11:19:41 +02:00
45754d8259 add cdc msc throughput example 2026-04-23 23:38:54 +07:00
5c0c166246 Merge upstream master into net descriptor-based ep_size branch
- Resolve .gitignore conflict: incorporate upstream's .worktrees entry and
  expand dependency path patterns to cover all tools/get_deps.py fetched dirs
  (lib/, tools/linkermap, tools/uf2, hw/mcu/*) instead of listing only a few

- Auto-merged upstream changes: build system cleanups, BSP updates,
  portability fixes, new boards (nrf54lm20dk, stm32h743_weact),
  fatfs relocation, and many other upstream improvements

- Net driver changes (ecm_rndis_device.c, ncm_device.c, net_device.h,
  usbd.h, usb_descriptors.c) retain our PR's descriptor-based ep_size
  approach as our branch takes precedence

Co-authored-by: HiFiPhile <4375114+HiFiPhile@users.noreply.github.com>
2026-04-23 09:49:02 +00:00
d3b6a252b1 reduce memory, focus on keep iperf speed 2026-04-23 16:09:23 +07:00
f9ffb94f3d tweak lwip config to get better iperf throughput 2026-04-23 15:29:27 +07:00
8513c50231 musb implement double buffer for tx 2026-04-22 11:53:02 +07:00
f9e79844ed replace TUD_ENDPOINT_ONE_DIRECTION_ONLY with CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY for improved configuration consistency across examples and core sources 2026-04-21 11:26:51 +07:00
9d0af750a5 add test for net_lwip_webserver with iperf throughput validation 2026-04-20 17:46:15 +07:00
5939831f17 remove duplicated tu_le16toh since we have converted the endian when setup. 2026-04-17 18:39:56 +08:00
5da96a38f0 fix ci 2026-04-14 14:04:07 +07:00
b55786e43a refactor rp2040 family.cmake to use family_configure_example() and apply WARN_FLAGS to tinyusb sources and examples sources only (skip 3rd party library and mcu vendor) 2026-04-14 13:17:12 +07:00
44b0ee0539 get freertos working with rp2040 2026-04-14 10:51:20 +07:00
4c7a9fed96 remove IAR toolchain support from make build system
IAR is only supported with CMake. Remove all IAR-specific references
from the Make build system including toolchain files, SRC_S_IAR,
LD_FILE_IAR variables, and IAR toolchain detection.

Also fix GET_SECTOR_COUNT truncation in msc_file_explorer and
broken formatting in stm32f7 board_uart_write.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 11:17:34 +07:00
751f465a39 Merge pull request #3581 from non-bin/master
Update FatFS to R0.16
2026-04-05 13:39:29 +07:00
9368e5d40f fix issue with exmaple 2026-04-03 10:45:16 +07:00
134e14849b fix hil host cdc echo test with imxrt and other fast mcu 2026-04-03 10:45:13 +07:00
b77632ebff update FatFS to R0.16 via abbrev/fatfs dependency
- Add lib/fatfs to deps_mandatory in get_deps.py, pinned to R0.16
  (commit 30ca13c6) from github.com/abbrev/fatfs mirror
- Move TinyUSB custom ffconf.h to examples/host/msc_file_explorer/src/
  with project-specific settings: FF_CODE_PAGE=437, FF_USE_LFN=1,
  FF_FS_RPATH=2, FF_VOLUMES=4, FF_FS_NORTC=1
- get_deps.py removes stock ffconf.h after clone to avoid conflict
- Remove vendored fatfs source files from git tracking

FatFS R0.16 includes important fixes since R0.15:
- Fixed FAT32 FsInfo regression (forced full FAT scan on f_getfree)
- Fixed f_readdir infinite loop (from R0.15b)
- f_getcwd/.. now works on exFAT
- Added FF_FS_CRTIME support
2026-04-02 17:32:45 +07:00
871b843245 Merge pull request #3561 from hathach/rp2040-hcd-epx
rp2 hcd rework: epx for non-interrupt and ping-pong double buffered
2026-04-02 11:31:11 +07:00
78d34d5b64 reduce code size, use state to replace active + pending 2026-04-01 17:47:01 +07:00
a2cca43290 Merge pull request #3570 from IntegraSources/mtp-changes
mtp: fixes in add_string
2026-03-27 15:31:10 +01:00
9a03a16c81 mtp: add sending mtp response if MTP_RESP_OPERATION_NOT_SUPPORTED 2026-03-25 15:43:48 +07:00
15eef94df0 add rp2040 sof + stop_trans on nak. increase nak_poll fs/ls delay to 300 us to prevent xfer is ack while stopping. 2026-03-23 17:57:41 +07:00
3c2627e739 update host msc hil test 2026-03-23 15:43:47 +07:00
f6fd60a6a3 examples/net_lwip_webserver: fix other_speed_config to use TUSB_DESC_OTHER_SPEED_CONFIG and fix SEED typo
Co-authored-by: HiFiPhile <4375114+HiFiPhile@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/3d21b8d3-b2df-4603-a426-2bcfdb408f04
2026-03-22 20:25:07 +00:00
3e5b79282a net: upgrade net_lwip_webserver to separate FS/HS descriptors and add bInterval to TUD_CDC_NCM_DESCRIPTOR
Co-authored-by: HiFiPhile <4375114+HiFiPhile@users.noreply.github.com>
Agent-Logs-Url: https://github.com/hathach/tinyusb/sessions/e212b526-e279-4a83-88bf-a742df293165
2026-03-22 19:43:46 +00:00
99d70e2990 Add dd command to MSC file explorer for sector read and speed reporting, adjust CLI configuration and HIL tests 2026-03-20 18:57:02 +07:00
b7656561b8 fix hid_generic_inout for TUD_ENDPOINT_ONE_DIRECTION_ONLY MCUs
Use separate endpoint numbers (EP1 OUT, EP2 IN) on MCUs with shared
FIFO that cannot support the same endpoint number in both directions.
Also add missing static qualifier to print_musb_info().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 12:56:54 +07:00
45e80a1042 add hil test for host msc and cdc 2026-03-17 21:38:46 +07:00
e2ead60107 add ft9xx-gcc toolchain support to CI 2026-03-13 23:07:46 +07:00
7ce1e78204 actual build make/cmake for ft9xx 2026-03-13 18:11:59 +07:00
aa1535a226 add support for CH32F20X MCU and update board configuration 2026-03-13 12:18:27 +07:00
5bca175ea1 Merge branch 'master' into ncm_restart 2026-03-13 00:57:30 +07:00
467f8c0a6b fix example
Signed-off-by: Zixun LI <admin@hifiphile.com>
2026-03-12 11:00:40 +01:00
e2884a1b88 Merge branch 'master' into ncm_restart 2026-03-12 10:55:18 +01:00
222af862aa refactor(cdc): remove runtime CDC driver configuration in favor of compile-time macros for simplicity and reduced complexity 2026-03-12 15:22:52 +07:00