??? 03/31/06 02:27 Modified: 03/31/06 02:37 Read: times |
#113450 - Thanks Tsuneo Responding to: ???'s previous message |
Tsuneo,Thing that i never forget is that if i have any experience on usb is for your kindly attention,Thanks
Tsuneo said:
As you receive the second device descriptor request without error, the Set_Address seems to be properly handled. Then, the handling of the second device descriptor request may have the error. - Is 'bMaxPacketSize' of the device descriptor set to 16 (10H)? I change the code,It is more readable and neat. Ep0_packet_size is equate on main and it is 16 now - Is 'VALIDATE_BUFFER' command sent after sending 2 bytes on the step 7 ? Yes,in my new firmware validate buffer is called after any part of send-Descriptor - Did you receive ZLP from the host after the step 7 ? yes,i find it through LCD clear screen Windows often issues bus reset unnecessarily. When the D12 and firmware receives bus reset, - D12 will automatically set its address to 0 by itself I do it be setting address to 0, - Initialize the flags and variables corresponding to USB handling to the default state on the firmware Thing that i don't implement it before! It is 5:41 morning now,But i'm not tired There are some progress: After attaching to usb bus A 'DING' and after removing a 'DONG' sound is heared(it made me hopeful) Host request 255 bytes of device descriptor 3 times? But not recognized Usb Device is existed now! Tsuneo,When ep0_packet_size is 8 the portion of third_part_descriptor/All_part=12/40 but when it is 16 the portion of second part_descriptor/All_part is 14/29 I think it is the key!But i don't know why? Best Regards Mehdi |