LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Usb > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: midas@j...
    Date: Fri, 3 Oct 2003 11:59:13 +0200
    Subject: Re: [usb] HOW TO Clear STALL condition?
    Top

    i have already tried your method, but still fail.
    following is my messages:
    
    CLEAR_FEATURE sequence:
    
    Setup,payload(0x02,0x01,00,00,0x82,00,00,00),In,
    
    endpoint 0x02 ,address 0x08(my define)
    
    but it still gets "STALL".
    
    Is my method wrong? Or should I use other commands? 
    Thanks a lot. 
    
    ----- Original Message ----- 
    From: "Gayathri Seshadri" <gaysesh@h... > 
    To: <usb@o... > 
    Date: Fri, 3 Oct 2003 09:38:18 +0530 
    Subject: Re: [usb] HOW TO Clear STALL condition? 
    
    > 
    > 
    > Hi, 
    > 
    > As far as my experience with the USB mass storage protocol, i would 
    > suggest you to do a clear feature endpoint stall to the IN endpoint 
    > of the 
    > bulk type. Normally the cbw suggests the expected no. of bytes in 
    > one of 
    > its 31 bytes and the bulk IN endpoint if has only lesser to the 
    > expected no. 
    > of bytes, it sends a STALL. 
    > As i suggested earlier, you can try "CLEAR_FEATURE"(endpoint stall) 
    > for 
    > the bulk in endpoint that stalled. 
    > 
    > Let me know if this helped.. 
    > 
    > Regards, 
    > Gayathri Seshadri. 
    > 
    > ----- Original Message ----- 
    > From: <midas@j... > 
    > To: <usb@o... > 
    > Sent: Thursday, October 02, 2003 1:36 PM 
    > Subject: [usb] HOW TO Clear STALL condition? 
    > 
    > 
    > > Hi, 
    > >  I'm a newbie to USB and USB mass storage devices. 
    > > I have a little trouble with my Cypress SL811HS Host 
    > Controller. 
    > > I've got the device to enumerate and I've found all of it's 
    > endpoints and 
    > > I'm able to send CBW's to the bulk OUT endpoint and read my 
    > data from 
    > > the IN endpoint as well as getting my CSW out from the IN 
    > endpoint. 
    > > For certain commands like INQUIRY and REQUEST SENSE I have 
    > already 
    > > been able to execute in the following sequence.. 
    > > 1. Send CBW to bulk OUT endpoint 
    > > 2. Read DATA from bulk IN endpoint 
    > > 3. Read CSW from bulk IN endpoint. 
    > > 
    > > For commands like READ_10 and READ_CAPACITY use sequence 
    > above. 
    > > The device WILL be stalled by host. 
    > > Is this STALL just a handshaking message to differentiate a 
    > data 
    > > transfer from a CSW transfer? And how to clear this STALL 
    > condition? 
    > > I approciate your help. 
    > > 
    > > i.e. 
    > > Read_Capacity 
    > > Host                                 Device 
    > >                  OUT_CBW   -> 
    > >                  In              -> 
    > >                  <- Data(1st) 
    > >                  In              -> 
    > >                  <- Data(2nd) 
    > >                  In              -> 
    > >                  <- Data(3rd) 
    > >                  In              -> 
    > >                  <- Data(4th) 
    > >                  In              -> 
    > >                  <- Data(5th) 
    > >                  In              -> 
    > >                  <- Data(6th) 
    > >                  In              -> 
    > >                  STALL        ->             //How to clear 
    > this stall 
    > message 
    > >                                                  //and 
    > continue getting 
    > the following 
    > >                                                  //data? 
    > > 
    > > 
    > > 
    > 
    
    
    
     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.