USB2.0 endpoint-in be stall

View: New views
2 Messages — Rating Filter:   Alert me  

USB2.0 endpoint-in be stall

by cminhluong :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I setup the usb 2.0 host and want to read data on usb mass storage
device  (read sector). And the flow to setup in below:

1/ Get device descriptor - device return ok
2/ Get device configuration - ok
3/ Set device address - ok
4/ Set device configuration - ok
5/ Reset bulk mass - ok
6/ Set deivce configuration - ok
7/ Call the read 10 command to read sector - fail
    Return status : endpoint-in STALL, endpoint-out (data sent ok)

Do you know whay the endpoint-in stall in this case?

Thank you very much
James
_______________________________________________
http://www.opencores.org/mailman/listinfo/usb

RE: USB2.0 endpoint-in be stall

by sid_karnik :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI,

Is your device following BOT protocol? If yes then the "stall" condition
is not unexpected you will have t clear the same and try again. Refer
BOT spec for the flow chart. Also before issuing the read10 you need to
issue some other command like test unit ready etc. Please refer to the
trace of any existing USB stack for details and sequence of commands
before read10.

Regards
Siddharth

-----Original Message-----
From: usb-bounces@... [mailto:usb-bounces@...] On
Behalf Of cminhluong@...
Sent: Tuesday, August 21, 2007 4:12 PM
To: usb@...
Subject: [usb] USB2.0 endpoint-in be stall

I setup the usb 2.0 host and want to read data on usb mass storage
device  (read sector). And the flow to setup in below:

1/ Get device descriptor - device return ok
2/ Get device configuration - ok
3/ Set device address - ok
4/ Set device configuration - ok
5/ Reset bulk mass - ok
6/ Set deivce configuration - ok
7/ Call the read 10 command to read sector - fail
    Return status : endpoint-in STALL, endpoint-out (data sent ok)

Do you know whay the endpoint-in stall in this case?

Thank you very much
James
_______________________________________________
http://www.opencores.org/mailman/listinfo/usb
_______________________________________________
http://www.opencores.org/mailman/listinfo/usb
LightInTheBox - Buy quality products at wholesale price!