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

Device fails to enumerate using windows #158

Closed
ryankurte opened this issue Jan 7, 2025 · 1 comment
Closed

Device fails to enumerate using windows #158

ryankurte opened this issue Jan 7, 2025 · 1 comment

Comments

@ryankurte
Copy link

ryankurte commented Jan 7, 2025

hi folks,

running [email protected] on an STM32H7 with usbd-serial and usbd-hid and everything is working okay on linux, but when connected to windows enumeration is attempted four times then fails with the error:

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

The USB device returned an invalid USB configuration descriptor.

digging into device manager reports USB\CONFIGURATION_DESCRIPTOR_VALIDATION_FAILURE and somewhat interestingly doesn't seem to correctly parse out the VID:PID (though the device descriptor read appears okay).

here is the defmt log from the device: stm32-usb-log.txt and a pcap captured using a cynthion between the host and device: stm32-usb-pcap.zip

this looks very similar to a couple of prior issues, though PRs suggest these were resolved:

i think the next step is to try isolating the hid and serial interfaces to make sure it's not specific to one of them, but i'd definitely appreciate any thoughts!

update: serial or hid each works by itself, but combining the two leads to failures...

@ryankurte
Copy link
Author

ryankurte commented Jan 7, 2025

looks like this was related to #102... resolved by increasing .max_packet_size_0(64), swapping to .composite_with_iads(), and making sure the hid interface is initialised and polled before the serial one (the other way around does not work for windows apparently).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant