[Dspforum] debugging help.

Pablo Pombo p_pombo at hotmail.com
Tue Oct 21 13:44:17 MDT 2008


1)
It never returns from the copy from SRAM function
It does not stop in a breakpoint within the copy loop.
It does not stop in a breakpoint within the while(1) loop
there is not optimization turned in yet.

2)
My software is codec runs in an interrupt.  It is hanging in that line but it is not polling. I guess the interrupts are generated.
It does not stop in a breakpoint within the while loop.
The play back is my debugging (only when not processing ffts) to verify that I writing to memory correctly.  I read back from SRAM and play it.
I will try blinking an LED

3)
I get a couple of warnings, all of them have been with me from the beginning and the third one in particular goes away with if I change the memory model to all data being far.


>> warning: creating output section .vecs without SECTIONS specification
>> warning: creating .stack section with default size of 400 (hex) words.
   Use
            -stack option to change the default size.
>> warning: Detected a near (.bss section relative) data reference to the symbol
            _DSK6713_AIC23_codecdatahandle defined in section .far.  The
            reference occurs in
            C:\CCStudio_v3.1\MyProjects\lab6\Debug\c6713dskinit.obj, section
            .text, SPC offset 00000058.  Either make the symbol near data by
            placing it in the .bss section, or make the references to the
            symbol far.  For C/C++ code use 'far' or 'near' modifiers on the
            type definition of the symbol or compile with the --mem_model:data

thanks, I will try a couple of things once I am in front of the board again.



Date: Tue, 21 Oct 2008 08:08:53 -0400
From: josephhaber at gmail.com
To: dspforum at echelonembedded.com
Subject: Re: [Dspforum] debugging help.

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!


_______________________________________________

Dspforum mailing list

Dspforum at echelonembedded.com

http://echelonembedded.com/mailman/listinfo/dspforum_echelonembedded.com





_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://echelonembedded.com/pipermail/dspforum_echelonembedded.com/attachments/20081021/93b47299/attachment.html>


More information about the Dspforum mailing list