You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I was considering filling a bug report but the template suggested I ask here first :
When I use the new usb stack, my device fails to disconnect/reconnect.
Board : custom using stm32g0b1kbt6n
Sample to reproduce : samples/subsys/usb/cdc_acm built for nucleo_g0b1re with -DCONF_FILE=usbd_next_prj.conf
Steps to reproduce : connect, disconnect, reconnect usb port
host : x86 ubuntu 23.04
zephyr 3.6.99 commit 6e4bdb7
dmesg output :
[27467.012619] usb 1-7: new full-speed USB device number 13 using xhci_hcd
[27467.163380] usb 1-7: New USB device found, idVendor=2fe3, idProduct=0001, bcdDevice= 3.06
[27467.163390] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[27467.163393] usb 1-7: Product: USBD CDC ACM sample
[27467.163396] usb 1-7: Manufacturer: Zephyr Project
[27467.163398] usb 1-7: SerialNumber: 2036313858565003
[27467.166529] cdc_acm 1-7:1.0: ttyACM1: USB ACM device
[27476.202034] usb 1-7: USB disconnect, device number 13
[27478.292143] usb 1-7: new full-speed USB device number 14 using xhci_hcd
[27478.444327] usb 1-7: New USB device found, idVendor=2fe3, idProduct=0001, bcdDevice= 3.06
[27478.444337] usb 1-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[27478.444341] usb 1-7: Product: USBD CDC ACM sample
[27478.444344] usb 1-7: Manufacturer: Zephyr Project
[27478.447124] usb 1-7: can't set config #1, error -32
Note : the sample works fine without using usbd_next_prj.conf
== Trying to debug ==
using :
CONFIG_LOG=y
CONFIG_USBD_LOG_LEVEL_INF=y
CONFIG_UDC_DRIVER_LOG_LEVEL_INF=y
CONFIG_USBD_CDC_ACM_LOG_LEVEL_DBG=y
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I was considering filling a bug report but the template suggested I ask here first :
When I use the new usb stack, my device fails to disconnect/reconnect.
Board : custom using stm32g0b1kbt6n
Sample to reproduce : samples/subsys/usb/cdc_acm built for nucleo_g0b1re with -DCONF_FILE=usbd_next_prj.conf
Steps to reproduce : connect, disconnect, reconnect usb port
host : x86 ubuntu 23.04
zephyr 3.6.99 commit 6e4bdb7
dmesg output :
Note : the sample works fine without using usbd_next_prj.conf
== Trying to debug ==
using :
CONFIG_LOG=y
CONFIG_USBD_LOG_LEVEL_INF=y
CONFIG_UDC_DRIVER_LOG_LEVEL_INF=y
CONFIG_USBD_CDC_ACM_LOG_LEVEL_DBG=y
and (custom board specific) :
/ {
chosen {
zephyr,console = &lpuart2;
zephyr,shell-uart = &lpuart2;
zephyr,uart-mcumgr = &lpuart2;
};
};
&lpuart2 {
pinctrl-0 = <&lpuart2_tx_pa14 &lpuart2_rx_pa13>;
pinctrl-names = "default";
current-speed = <460800>;
status = "okay";
};
&usart2 {
status = "disabled";
};
uart output :
I am not sure what is the best approach to avoid dropped messages.
udc: Failed to allocate net_buf 255 -> this looks like something worth exploring but I can't find the source file that is throwing this error.
So is it a known problem ? Is it working on other targets (I don't have other usb capable boards available right now to test myself) ?
Any guidance on this would be greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions