Skip to content
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

samples: usb: webusb-next: failure to enumerate on lpcxpresso55s16 under MS Windows #83306

Open
henrikbrixandersen opened this issue Dec 22, 2024 · 1 comment
Assignees
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug Experimental Experimental features not enabled by default platform: NXP NXP

Comments

@henrikbrixandersen
Copy link
Member

Describe the bug
When running samples/subsys/usb/webusb-next/ on the lpcxpresso55s16/lpc55s16 board, it fails to enumerate on MS Windows, since the MSOSv2 descriptor cannot be read.

To Reproduce
Steps to reproduce the behavior:

  1. west build -b lpcxpresso55s16/lpc55s16 samples/subsys/usb/webusb-next/
  2. west flash
  3. See error below when board is plugged into a PC running MS Windows

Expected behavior
USB enumeration completes.

Impact
Unable to use MSOSv2 descriptors.

Logs and console output

*** Booting Zephyr OS build v4.0.0-2624-g59c94db6f052 ***
[00:00:00.104,000] <inf> main: USBD message: Bus reset
[00:00:05.711,000] <inf> main: USBD message: Bus reset
[00:00:05.855,000] <err> usbd_core: UDC error event
[00:00:05.855,000] <inf> main: USBD message: Controller error
[00:00:10.878,000] <err> usbd_core: UDC error event
[00:00:10.878,000] <inf> main: USBD message: Controller error

Environment (please complete the following information):

  • OS: MS Windows USB host
  • Toolchain: Zephyr SDK 0.17.0
  • Commit SHA: 59c94db

Additional context
When the MS Windows USB host attempts to read the MSOSv2 descriptor, the code eventually reaches

if (!udc_ep_is_busy(dev, cfg->addr)) {
where udc_ep_is_busy(dev, cfg->addr) returns true, causing udc_mcux_ep_feed() to return -EBUSY.

@henrikbrixandersen henrikbrixandersen added bug The issue is a bug, or the PR is fixing a bug area: USB Universal Serial Bus Experimental Experimental features not enabled by default labels Dec 22, 2024
@henrikbrixandersen
Copy link
Member Author

The same sample enumerates when running on the from_k64f board. Likely an issue specific to the udc_mcux_ip3511.c driver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus bug The issue is a bug, or the PR is fixing a bug Experimental Experimental features not enabled by default platform: NXP NXP
Projects
None yet
Development

No branches or pull requests

2 participants