1/1
Bulk in not NAKing in usb1_funct
by Unknown on Jan 26, 2005 |
Not available! | ||
I have been having a problem with ReadFile if I set nNumberOfBytesToRead
greater than the packet size. The usb developers forum had suggested that
the IN packet from the host was not being NAKÂ’ed correctly and with a
modified testbench I found this to be true. My problem is that the buffer
returned from ReadFile correctly return the amount of data received at the
point at which the function is called but the data is scattered around the
buffer in Maxpacket sized blocks.
Looking back through previous posts I believe that the bulk in was never
designed to NAK even though it is required by the spec usb rev2. 8.4.6.1. I
believe that the original application was a streaming audio app.
I have added some bulk in and out tests to my testbench and changing line
665 of usb1_pe from
if(txfr_int & ep_empty)
to
if(txfr_bulk & ep_empty & !ctrl_ep)
and corrected the sensitivity list. I am not using interrupt transfers so
that doesnÂ’t affect me. Does anyone see any problems with this or have a
better way of doing it?
This does not get around the requirement to double buffer the data if you do
not receive an ACK from the host. This is a separate issue.
Matt Gillespie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.opencores.org/forums/usb/attachments/20050126/edd5e966/attachment.htm
|
1/1