bunalmis
Full Member level 5
I am trying to write usb enumeration routines. My program has errors. But where I don't know.
1) PC, the command sends GetDeviceDescriptor. (80 06 00 01 00 00 40 00) Hex
- The software sends DeviceDesriptor.
2) The reset signal coming from the PC
3) PC sends the command SetAddress (00 05 02 00 00 00 00 00)
- I read and I set the address. (Address is 2)
These processes take place two more times.
And PC gives an error message "USB Device Not Recognized"
My DeviceDescriptor data {18, 0x01, 0x10, 0x01, 0xFF, 0xFF,0xFF, 0x08, 0x47, 0x05, 0x31, 0x21, 0x21, 0x00, 0x01, 0x02, 0x03,0x01}
How can I find the problem?
My DeviceDescriptor can go wrong in PC
How can I check it?
1) PC, the command sends GetDeviceDescriptor. (80 06 00 01 00 00 40 00) Hex
- The software sends DeviceDesriptor.
2) The reset signal coming from the PC
3) PC sends the command SetAddress (00 05 02 00 00 00 00 00)
- I read and I set the address. (Address is 2)
These processes take place two more times.
And PC gives an error message "USB Device Not Recognized"
My DeviceDescriptor data {18, 0x01, 0x10, 0x01, 0xFF, 0xFF,0xFF, 0x08, 0x47, 0x05, 0x31, 0x21, 0x21, 0x00, 0x01, 0x02, 0x03,0x01}
How can I find the problem?
My DeviceDescriptor can go wrong in PC
How can I check it?