Re: Flushing EP2IN on MAX3421E and WinUSB



Bill,

In my project I sometimes read a stream of data from a device attached to a MAX3421E. That part has a couple of 64 bytes FIFO's, and when they are empty, I fill them again, and lovely data rates.

So you are using the MAX3421E in peripheral mode.

All is well UNTIL I want to stop the stream, and read something else. The 2*64 bytes gets prefixed to the next thing I read.

Reading the data does not work as the CPU driving the MAX3421E obligingly fills the FIFO's up again.

You could try setting STALL on EP2 from PC then clearing it. This should force the MAX3421E to reset that endpoint.


Andrew
.