PORTS Forum

Ports and Interfaces => USB => Topic started by: eng.Buffon on March 04, 2012, 10:16:55 pm

Title: (CLASS_INTERFACE) STALL end point 0 (control end point)?!!!
Post by: eng.Buffon on March 04, 2012, 10:16:55 pm
hi guys..
hi everyone..

i just wrote the firmware of Mass Storage Device on pic18f4550 and this is the time to try it..

when i simulate it on proteus it enumerates successfully but when this command get it Stall the endpoint hanging everything

this Command called CLASS_INTERFECE

this is picture of what i got

(http://i43.tinypic.com/2eyjg54.jpg)

and this is the setup packet exactly i got

(http://i40.tinypic.com/2j5i42t.jpg)


please help me
Thanks in Advance
Title: Re: (CLASS_INTERFACE) STALL end point 0 (control end point)?!!!
Post by: Jan Axelson on March 04, 2012, 10:41:53 pm
"class interface" means it's a class-specific request directed to an interface.

To find the specific request, in the second screen, look under Setup Packet for bRequest.

FE is Get Max LUN.

Jan
Title: Re: (CLASS_INTERFACE) STALL end point 0 (control end point)?!!!
Post by: eng.Buffon on March 04, 2012, 10:54:55 pm
yeah i got that thank you

wIndex field set to the interface number

what is supposed to be in this case ???
Title: Re: (CLASS_INTERFACE) STALL end point 0 (control end point)?!!!
Post by: Jan Axelson on March 05, 2012, 12:26:02 pm
If you are asking what is the value of wIndex, it's bInterfaceNumber from the mass-storage device's interface descriptor.

Jan