USB problem with Configuration Descriptor

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

User avatar
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

Post by Giovanni »

Hi,

I'll give a try, probably in the weekend.

Giovanni
User avatar
Spider
Posts: 25
Joined: Tue Nov 27, 2012 10:05 am
Been thanked: 1 time

Re: USB problem with Configuration Descriptor

Post by Spider »

And I can't send from FW any descriptor more than 0xFF bytes :(
User avatar
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

Post by Giovanni »

Hi,

I'll try to verify this as soon as possible, I am a bit overloaded of late.

Giovanni
User avatar
Spider
Posts: 25
Joined: Tue Nov 27, 2012 10:05 am
Been thanked: 1 time

Re: USB problem with Configuration Descriptor

Post by Spider »

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 :)
User avatar
Spider
Posts: 25
Joined: Tue Nov 27, 2012 10:05 am
Been thanked: 1 time

Re: USB problem with Configuration Descriptor

Post by Spider »

Any news?
User avatar
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

Post by Giovanni »

Not yet, I hope to be able to give it a try next week.

Giovanni
User avatar
Spider
Posts: 25
Joined: Tue Nov 27, 2012 10:05 am
Been thanked: 1 time

Re: USB problem with Configuration Descriptor

Post by Spider »

I still waiting for help :)
User avatar
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

Post by Giovanni »

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
User avatar
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

Post by Giovanni »

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.

hid.png
hid.png (36.75 KiB) Viewed 4904 times


Isn't this the expected result?

Giovanni
User avatar
Spider
Posts: 25
Joined: Tue Nov 27, 2012 10:05 am
Been thanked: 1 time

Re: USB problem with Configuration Descriptor

Post by Spider »

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.
Attachments
USB Composite.rar
(6.46 KiB) Downloaded 408 times
Post Reply