-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
usb: nrf: usb on reel board becomes unavailable if USB cable is not connected at first #20953
Comments
It is the same hardware issue as #11171. |
I would argue this issue is different from the issue #11171 in that the USB stack here can't be recovered even though the USB cable is connected later, resulting in unavailability of USB functionality unless rebooting the system. It is obvious that USBD event queue is full and seems the action of clearing event queue doesn't work well at that moment. @finikorg Do you think the issue reported here is the same as the one you has reported? |
@jli157 In my case the USB was recoverable after I plug the cable, but it may still be the same issue. |
There is probably a issue with the event queue in the nRF driver. |
I've checked it on my reel_board (v1507.0). I hope it does not differ that much. It chokes because the event Q is overflowed and if that happen driver performs flush. For nrf52840dk it works without any problems that's why I think its board (hw) related. |
I have a fix for that. |
@jli157 Thanks for the report and sorry that I did not take it seriously right away :-) |
Free memory block if event is intended to be dropped. Resolves: zephyrproject-rtos#20953 Signed-off-by: Johann Fischer <[email protected]>
Free memory block if event is intended to be dropped. Resolves: #20953 Signed-off-by: Johann Fischer <[email protected]>
Describe the bug
Running the sample samples/subsys/hid on reel_board(v1507.1), based on the master branch (head is 7aa2355). At the beginning, the USB cable is not connected to the nRF USB port.
After booting up, endless messages come like below, and the USB can't be enumerated after plugging in the USB cable.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The USB should be available even the USB cable is not connected at the beginning.
Similar issues
The issue is very similar to the issue #11171, but still a bit different. It seems the USB stack becomes unrecoverable.
The text was updated successfully, but these errors were encountered: