AnsweredAssumed Answered

Cancel a USB adi_dev_write?

Question asked by ALitz on Oct 29, 2011
Latest reply on Oct 31, 2011 by CraigG

Hi -

 

Using a BF533, and USB net 2272, I have a situation where the following occurs:

 

BF533                                  Windows

----------------                            ------------------

 

adi_dev_read                       usb_write()               

receive RX callback

 

adi_dev_write                       usb_read()

receive TX callback

 

I can do the above many times...however - if the situation changes to 

 

BF533                                  Windows

----------------                            ------------------

 

2) adi_dev_read                       1) usb_write()                

receive RX callback

 

3) adi_dev_write                       4)( no read happens, say, program crashed)

(no callback)

 

then from this point on, the following occurs:

 

BF533                                  Windows

----------------                            ------------------

 

2) adi_dev_read                       1) usb_write()                

receive RX callback

 

3) adi_dev_write                       4) usb_read()

(no callback!!!, no data!)            read fails immediately!!

 

How do I cancel the write?   I can detect this occuring, as I get no TX callback, but no matter what I do, I can't get the system to recover!

 

I've tried clearing endpoints, etc... to no avail.

 

Thanks for help ahead of time!

Outcomes