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

usb echo example doesn't work with windows #16

Closed
wackydoo opened this issue May 19, 2023 · 3 comments · Fixed by #17
Closed

usb echo example doesn't work with windows #16

wackydoo opened this issue May 19, 2023 · 3 comments · Fixed by #17
Labels
bug Something isn't working

Comments

@wackydoo
Copy link

I can upload the usb_echo example. It works when connected to linux computers, but the usb device is not recognized in windows.

Connecting to linux produces messages about issues with the USB config descriptor, which are corrected.

[24017.310623] usb 1-1.5: new high-speed USB device number 7 using ehci-pci
[24017.389225] usb 1-1.5: config 1 interface 0 altsetting 0 endpoint 0x81 has an invalid bInterval 255, changing to 11
[24017.389238] usb 1-1.5: config 1 interface 1 altsetting 0 bulk endpoint 0x82 has invalid maxpacket 64
[24017.389243] usb 1-1.5: config 1 interface 1 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 64
[24017.389718] usb 1-1.5: New USB device found, idVendor=1234, idProduct=abcd, bcdDevice= 0.10
[24017.389724] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[24017.389728] usb 1-1.5: Product: usb-echo
[24017.389731] usb 1-1.5: Manufacturer: example
[24017.389734] usb 1-1.5: SerialNumber: 0123456789ABCDEF

When connecting with windows we get a popup message "USB Device not recognized".

Windows has stopped this device because it has reported problems. (Code 43)

The USB device returned an invalid USB configuration descriptor.

How can we modify the example to make the USB descriptor correct so that we see the USB CDC device in windows?

@gdobato
Copy link
Owner

gdobato commented May 21, 2023

Hello @wackydoo ,

Thanks for reporting the issue.
Issue is also reproducible on my end, i need to look into it.

@gdobato gdobato added the bug Something isn't working label May 22, 2023
@gdobato gdobato linked a pull request May 23, 2023 that will close this issue
@gdobato
Copy link
Owner

gdobato commented May 23, 2023

Hello @wackydoo ,

1484c9b should fix the issue . Could you pls check it on your side ?
Thanks :)
BR,

@gdobato gdobato reopened this May 23, 2023
@wackydoo
Copy link
Author

Works for me now in Windows and Linux. Thanks for the great examples - ready to go with the portenta.

@gdobato gdobato closed this as completed May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants