Hi Stefan,<br><br>Also in the SETUP stage where I have set my packet size as 1, as I treat 
each of this 3 stages (SETUP, DATA and STATUS) as three different 
stages/transactions,  I find that the &quot;Non-Periodic Transmit FIFO/Queue 
Status Register&quot; read as soon as I write to the &quot;Non-Periodic Transmit 
FIFO Size Register&quot; as &quot;0x10500fa&quot;. Before writing the value is 
&quot;0x80100&quot;. Is it fine that the bit 7 which defines the termination 
of channel a right thing to happen?
Secondly since i am writing 2 bytes to the FIFO why should the &quot;Non-periodic TxFIFO Space Avail (NPTxFSpcAvail)&quot; bits of USB0_GNPTXSTS be 0xfa?<br>
<br>The FIFO to which I write:
<br>*USB0_GRXFSIZ - 0x213            USB0_GNPTXFSIZ - 0x1000213*
<br>The above setting mean that my Non-Periodic Transmit register starts at 
0x213. So I write my data (8 byte SETUP Token Data) in the following way:
<br>-    Write the first 4 bytes to the starting adress of  0x1000 since I 
am using Channel 0  --- (*(volatile unsigned  *)(DHc-&gt;base + 0x1000 + 
(bEnd * 0x1000) + 0x213 + fifo_address_offset))=*((volatile       
unsigned *)pSrcBuf);
<br>-   Then increment the &quot;fifo_adress_offset&quot; by 4 and write the next 4 bytes.
<br>
<br>I think that there is some problem in the SETUP (Token) Stage. Can you 
please pass any pointers over this?<br><br>Regards;<br>Aadish<br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 6:09 PM, Adish Kuvelker <span dir="ltr">&lt;<a href="mailto:adish.kuvelker@gmail.com">adish.kuvelker@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Stefan,<br><br>I am working on the internal OTG controller. The synopsys DWC.<br><br>Regards;<br>
Aadish<div><div></div><div class="Wj3C7c"><br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 5:57 PM, Stefan Roese <span dir="ltr">&lt;<a href="mailto:sr@denx.de" target="_blank">sr@denx.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div>On Wednesday 25 February 2009, Adish Kuvelker wrote:<br>

&gt; I am developing a Host Controller Driver for the PPC405EX based board. I<br>
&gt; have a OTG controller on it, which I have to configure as Host Controller<br>
&gt; and thus I am witting a HCD for the same. I am stuck at the Control stage<br>
&gt; wherein although my SETUP stage seems to be going through I get a STALL.<br>
&gt;<br>
&gt; Can anyone help me in this regard as to where would I get a reference code<br>
&gt; for this?<br>
<br>
</div></div>Are you talking about the 405EX internal USB OTG controller (Synopsys DWC) or<br>
some other OTG controller?<br>
<br>
Best regards,<br>
<font color="#888888">Stefan<br>
</font></blockquote></div><br>
</div></div></blockquote></div><br>