[Dspforum] debugging help.

Joseph Haber josephhaber at gmail.com
Tue Oct 21 06:08:53 MDT 2008


Pablo,

A couple of questions:

1) What is the observable condition that makes you think your program is not
working correctly?

2) Why do you think it dies in the copyData function if you find yourself in
the transmit polling? Also, why do you think the while(1) loop is not
running? Are you playing something out the codec the entire time? I am
wondering if the while(1) is in fact running (you may be blinking and LED,
or have a debug statement that makes it clear it is not).

3) Do you get any warnings when you build your project?

Joseph

On Tue, Oct 21, 2008 at 7:03 AM, Pablo Pombo <p_pombo at hotmail.com> wrote:

>  I am looking for tips here.
>
> I get all data recorded.  I know the 10 seconds are good because I can play
> them back.
>
> I have the fft calculated,  I know is good because I can feed a tone and I
> get the right response.
>
> Now in the middle of reading from memory my program goes south
>
> copyData_from_xram(int j)
> {
>     for (i = j*(N/2); i <  j*(N/2)+ N ; ++i)
>     {
>         x[i].re = data[i].re;
>         x[i].im = data[i].im;
>     }
> }
>
> I do not understand why is breaking.  I am not using DMA yet.
>
> When I break it seems to be hanging  in:
>
>  if (poll) while(!MCBSP_xrdy(DSK6713_AIC23_DATAHANDLE));//if ready to
> transmit
>         MCBSP_write(DSK6713_AIC23_DATAHANDLE,AIC_data.uint);//write/output
> data
>
> And the infinite loop in main does not seem to be running.
>
>
> Any ideas.  I am a little stuck here.
>
>
> ------------------------------
> Explore the seven wonders of the world Learn more!<http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE>
>
> _______________________________________________
> Dspforum mailing list
> Dspforum at echelonembedded.com
> http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://echelonembedded.com/pipermail/dspforum_echelonembedded.com/attachments/20081021/f14188e7/attachment.html>


More information about the Dspforum mailing list