Re: Persistent stall in the Cypress FX2 FIFO



"Antti Keskinen" <antti.keskinen@xxxxxxxxx> ha scritto nel messaggio
news:dls3d5$2vrr$1@xxxxxxxxxxxxxxxxx
> Hello !
>
> Are you absolutely certain that the endpoint is STALLed ? STALL condition
> usually means that the endpoint has received an invalid USB request. In
> this case, and looking at the FX2 TRM, it might mean you're not serving
> the IBN and PING requests sent by the host.
[CUT]

Hi Antti,
thank you for your answer!
You're right, it doesn't looks like a real stall condition... Moreover in my
application I use the AUTOIN/AUOTOUT feature, so the CPU does not access the
data (data are directly committed to the FIFOs), and so the CPU doesn't need
to handle the IBN and PING interrupt (Am I right?).
Today I noticed that the condition that triggers this apparent "stall" is
sending 2 bulk packets without empting the FIFO first, it doesn't matter how
long they are (it appends even for 4 byte long packets). If I download a
packet from the FIFO before sending the next one all works fine... But if
the EP receive two packets it doesn't take other packets, even if I empty
the FIFO: I have to reset the FX2!
I'm really puzzled... :-)

Regards,
A.D.



.



Relevant Pages

  • Re: Persistent stall in the Cypress FX2 FIFO
    ... the FX2's firmware code, would be to install some sort of stub routines ... > how long they are (it appends even for 4 byte long packets). ... > a packet from the FIFO before sending the next one all works fine... ... smaller or larger than what a single buffer could hold. ...
    (comp.arch.embedded)
  • Filter Before FIFO or Within FIFO
    ... I need to count the number of packets that make up the first 60 Bytes ... Modifying the FIFO to count the number of packets that make 60 Bytes ... Thx in advans, ...
    (comp.realtime)
  • Re: Filter Before FIFO or Within FIFO
    ... Modifying the FIFO to count the number of packets that make 60 Bytes ... The packet contains a single-byte end mark. ...
    (comp.realtime)
  • Re: ipprecedence
    ... > it will not be allowed to go out before packets without ipprecedence ... > that are already in FIFO. ... handled by a different queue, ... packets, representing the actual bandwidth. ...
    (freebsd-net)