Hi,
I'll give a try, probably in the weekend.
Giovanni
USB problem with Configuration Descriptor
Moderators: RoccoMarco, lbednarz, tfAteba
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: USB problem with Configuration Descriptor
And I can't send from FW any descriptor more than 0xFF bytes 
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: USB problem with Configuration Descriptor
Hi,
I'll try to verify this as soon as possible, I am a bit overloaded of late.
Giovanni
I'll try to verify this as soon as possible, I am a bit overloaded of late.
Giovanni
Re: USB problem with Configuration Descriptor
I add to my descriptor "Interface Association Descriptor" with USB Microphone Interfaces and Endpoint, and this way or resolving problem not work. I set descriptor to 0x100 bytes and it transmit to driver but with out 1 last byte (problem with 0xFF length). Descriptor transmitted correctly (several last bytes only for rounding) but device not work, I think because length defined 0x100, but transfered 0xFF. I don't know how to explain it
In result device detected as not work and not configured, but SET_CONFIGURATION setup packet sent to device 
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: USB problem with Configuration Descriptor
Not yet, I hope to be able to give it a try next week.
Giovanni
Giovanni
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: USB problem with Configuration Descriptor
Hi,
I am trying your test application after adapting it to a F3-Discovery, the host (WinXP) enumerates it but the installation does not finish, the device is marked as USB Composite Device with an error (This device cannot start. (Code 10)).
Is this supposed to happen?
Giovanni
I am trying your test application after adapting it to a F3-Discovery, the host (WinXP) enumerates it but the installation does not finish, the device is marked as USB Composite Device with an error (This device cannot start. (Code 10)).
Is this supposed to happen?
Giovanni
- Giovanni
- Site Admin
- Posts: 14895
- Joined: Wed May 27, 2009 8:48 am
- Has thanked: 1202 times
- Been thanked: 997 times
Re: USB problem with Configuration Descriptor
Weird, if I remove the 20 zero bytes from the descriptor and change the length to 0x6D then it works perfectly and all the devices are recognized.
Isn't this the expected result?
Giovanni
Isn't this the expected result?
Giovanni
Re: USB problem with Configuration Descriptor
Hello!
With Happy New Year!
In my case I have STM32F103 and next situation:
If I write descriptor length 0x81 with padding bytes, all work.
If I write descriptor length 0x6D w/o padding bytes - not work, and device not recognized.
What I do wrong?
I haven't HW USB Analyzer, but I attached logs from USB Lyzer. Look at them.
With Happy New Year!
In my case I have STM32F103 and next situation:
If I write descriptor length 0x81 with padding bytes, all work.
If I write descriptor length 0x6D w/o padding bytes - not work, and device not recognized.
What I do wrong?
I haven't HW USB Analyzer, but I attached logs from USB Lyzer. Look at them.
- Attachments
-
- USB Composite.rar
- (6.46 KiB) Downloaded 408 times