AnsweredAssumed Answered

USB Device (MSC): how to wait for data ?

Question asked by zuikov.dmitry on Mar 6, 2012
Latest reply on Mar 7, 2012 by zuikov.dmitry

I'm trying  to implement USB device that emulates mass storage on USB FS, however, the data source  is approx. 10 times slower than USB FS transmit rate.

I tried to wait in Mass Storage read callback for data, but it makes everything hang.
In USBD example there is a wait loop in a handler, but if I try to wait more than ~ 3 msec
it does not work.

The external host reads greedy, so it  necessary  to limit the read speed somehow. How to do it better?  

Outcomes