<div dir="ltr">the &quot;waitfordma&quot; routine from our notes should work for that.&nbsp; Only thing to be careful of is that you wait for the right TCC code.&nbsp; Of course, the side effect of having that wrong would be waiting forever<br>
<br>Good luck,<br>Doug<br>&nbsp;<br><br><div class="gmail_quote">On Thu, Oct 16, 2008 at 7:18 PM, Ryan Merton <span dir="ltr">&lt;<a href="mailto:lucidsmog@gmail.com">lucidsmog@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 Doug,<br>
<br>
Your guess was correct in that waitfordma was in fact not waiting for<br>
anything. &nbsp;Throwing in an arbitrary spin loop allowed for everything<br>
to work. &nbsp;Then I had it print how many times it sat in it&#39;s<br>
theoretical &quot;wait for DMA to finish&quot; loop, and the number is always<br>
zero.<br>
<br>
I guess that&#39;s what I get for using someone else&#39;s code, even if it<br>
was from an example TI provided!<br>
<br>
I haven&#39;t worked out yet how to correctly wait for it, but I&#39;m sure it<br>
can&#39;t be that hard!<br>
<br>
Thanks,<br>
<font color="#888888">Ryan<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Thu, Oct 16, 2008 at 3:36 PM, Wenstrand, Doug S.<br>
&lt;<a href="mailto:Douglas.Wenstrand@jhuapl.edu">Douglas.Wenstrand@jhuapl.edu</a>&gt; wrote:<br>
&gt;<br>
&gt; Yes, there are some things that we need to do to setup SDRAM, and they<br>
&gt; are in the GEL file, so check to make sure that you are using the gel<br>
&gt; file for the c6713dsk. &nbsp;CCS sets these registers when you connect the<br>
&gt; emulator, that why we don&#39;t in our software.<br>
&gt;<br>
&gt; The reason I don&#39;t see that being an issue is that I thought we saw<br>
&gt; beautiful data that you had extracted from SDRAM and put into L2. &nbsp;Are<br>
&gt; you sure that you are waiting for the DMA transfers to happen correctly?<br>
&gt; If you can step through all cases, and see the right FFT show up in the<br>
&gt; right place in external memory, and only when free-running it goes bad,<br>
&gt; I suspect that the waiting process might not be correct.<br>
&gt;<br>
&gt; Two things :<br>
&gt;<br>
&gt; 1) see how long you actually wait in waitfordma. &nbsp;If it seems too fast,<br>
&gt; something is wrong.<br>
&gt; 2) send me the project at the website... Lab6_merton_test.zip or<br>
&gt; something like that. I&#39;ll take a look as well<br>
&gt;<br>
&gt; Seeya<br>
&gt; Doug<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ---------------------------------------<br>
&gt; D. S. Wenstrand<br>
&gt; Johns Hopkins University<br>
&gt; Applied Physics Laboratory<br>
&gt; (240) 228-4282<br>
&gt;<br>
&gt;<br>
&gt; -----Original Message-----<br>
&gt; From: <a href="mailto:dspforum-bounces@echelonembedded.com">dspforum-bounces@echelonembedded.com</a><br>
&gt; [mailto:<a href="mailto:dspforum-bounces@echelonembedded.com">dspforum-bounces@echelonembedded.com</a>] On Behalf Of Ryan Merton<br>
&gt; Sent: Thursday, October 16, 2008 3:01 PM<br>
&gt; To: <a href="mailto:dspforum@echelonembedded.com">dspforum@echelonembedded.com</a><br>
&gt; Subject: [Dspforum] More troubles with lab 6<br>
&gt;<br>
&gt; Doug,<br>
&gt;<br>
&gt; Remember how we figured out that my problem last night was related to<br>
&gt; the bit reversal indexing? &nbsp;It wasn&#39;t. &nbsp;I went home, and I did in fact<br>
&gt; call the routine with the correct parameters to begin with.<br>
&gt; Breakpointing around the FFT and saving data along the way leads me to<br>
&gt; see no problem at all. &nbsp;Only after I remove the breakpoints and let it<br>
&gt; go freerunning do things start to mess up.<br>
&gt;<br>
&gt; Is there some magic we have to configure to get the SDRAM timings right,<br>
&gt; or DMA configuration registers aside from the QDMA registers?<br>
&gt;<br>
&gt; I breakpointed after bringing the time domain data in from ext ram,<br>
&gt; after the FFT and bit reversal, and after the FFT data is stored off to<br>
&gt; RAM. &nbsp;At each of those steps for the first 7 FFTs I saved the contents<br>
&gt; of external RAM. &nbsp;It all looks fine. &nbsp;I got tired of it, removed the<br>
&gt; breakpoints, and let it run, then dumped it all at the end... and<br>
&gt; starting at about the 13th FFT the FFT data is not right.<br>
&gt; The time domain data remains intact. &nbsp;If I do the first 3 FFTs and let<br>
&gt; it go free running, it messes up around the 6th or 7th FFT.<br>
&gt;<br>
&gt; Any ideas? &nbsp;I am using this to wait for the DMA to finish: &nbsp;while<br>
&gt; (!(EDMA_getPriQStatus() &amp; EDMA_OPT_PRI_HIGH)); I stole that line right<br>
&gt; from the CSL user&#39;s guide. &nbsp;I am tempted to put something like<br>
&gt; for(x=0;x&lt;10000000;x++){blah=sin(x);} and see if it works then.<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Ryan<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Dspforum mailing list<br>
&gt; <a href="mailto:Dspforum@echelonembedded.com">Dspforum@echelonembedded.com</a><br>
&gt; <a href="http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com" target="_blank">http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Dspforum mailing list<br>
&gt; <a href="mailto:Dspforum@echelonembedded.com">Dspforum@echelonembedded.com</a><br>
&gt; <a href="http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com" target="_blank">http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Dspforum mailing list<br>
<a href="mailto:Dspforum@echelonembedded.com">Dspforum@echelonembedded.com</a><br>
<a href="http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com" target="_blank">http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com</a><br>
</div></div></blockquote></div><br></div>