File tree Expand file tree Collapse file tree 6 files changed +22
-14
lines changed
doc/connectivity/usb/device_next Expand file tree Collapse file tree 6 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -53,5 +53,7 @@ Zephyr network support.
5353
5454See :zephyr:code-sample: `zperf ` for reference.
5555To build the sample for the new device support, set the configuration overlay file
56- ``-DDEXTRA_CONF_FILE=overlay-usbd_next_ecm.conf `` and devicetree overlay file
57- ``-DDTC_OVERLAY_FILE="usbd_next_ecm.overlay `` either directly or via ``west ``.
56+ ``-DDEXTRA_CONF_FILE=overlay-usbd_next.conf `` and devicetree overlay file
57+ ``-DDTC_OVERLAY_FILE="usbd_next_ecm.overlay `` for ECM either directly or via ``west ``.
58+ To build with NCM, set the configuration overlay file as above and the devicetree overlay
59+ file to ``-DDTC_OVERLAY_FILE="usbd_next_ncm.overlay ``.
Original file line number Diff line number Diff line change 11# USB Device Settings
22CONFIG_USB_DEVICE_STACK=y
33
4+ CONFIG_NET_PKT_RX_COUNT=14
5+ CONFIG_NET_PKT_TX_COUNT=14
6+ CONFIG_NET_BUF_RX_COUNT=28
7+ CONFIG_NET_BUF_TX_COUNT=28
8+ CONFIG_NET_BUF_DATA_SIZE=1500
9+
410# Select USB Configurations
511CONFIG_USB_DEVICE_NETWORK_ECM=y
612CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n
Original file line number Diff line number Diff line change 1+ CONFIG_USB_DEVICE_STACK_NEXT=y
2+
3+ # next-ncm does not work well with the static-size buffers
4+ CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE=10000
5+ CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE=10000
6+ CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
7+
8+ CONFIG_LOG=y
9+ CONFIG_USBD_LOG_LEVEL_WRN=y
10+ CONFIG_UDC_DRIVER_LOG_LEVEL_WRN=y
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,11 +8,6 @@ CONFIG_NET_UDP=y
88CONFIG_NET_TCP=y
99CONFIG_NET_STATISTICS=y
1010
11- CONFIG_NET_PKT_RX_COUNT=14
12- CONFIG_NET_PKT_TX_COUNT=14
13- CONFIG_NET_BUF_RX_COUNT=28
14- CONFIG_NET_BUF_TX_COUNT=28
15- CONFIG_NET_BUF_DATA_SIZE=1500
1611CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=4
1712CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5
1813CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1
Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ tests:
4848 - native_posix/native/64
4949 sample.net.zperf.device_next_ecm :
5050 harness : net
51- extra_args : OVERLAY_CONFIG="overlay-usbd_next_ecm .conf"
51+ extra_args : OVERLAY_CONFIG="overlay-usbd_next .conf"
5252 DTC_OVERLAY_FILE="usbd_next_ecm.overlay"
5353 platform_allow : nrf52840dk/nrf52840 frdm_k64f
5454 tags : usb net zperf
5555 depends_on : usb_device
5656 sample.net.zperf.device_next_ncm :
5757 harness : net
58- extra_args : OVERLAY_CONFIG="overlay-usbd_next_ecm .conf"
58+ extra_args : OVERLAY_CONFIG="overlay-usbd_next .conf"
5959 DTC_OVERLAY_FILE="usbd_next_ncm.overlay"
6060 platform_allow : nrf52840dk/nrf52840 frdm_k64f
6161 tags : usb net zperf
You can’t perform that action at this time.
0 commit comments