DSPRelated.com
Forums

DSP halts after sometime

Started by nishank pathak February 17, 2009
Hi All,
I am coding a speech enhancement system on TI 6713. The sampling rate is 8Khz. After running for around 12 seconds the dsp halts by itself. It does not give any error. Can anyone help?

Thanks
Nishank

_____________________________________
Mike,
Thanks for the reply. It was totally my fault. There were exit commands in the code. Sorry for the trouble.

Thanks
Nishank

--- On Wed, 18/2/09, Michael Dunn wrote:

From: Michael Dunn
Subject: Re: [c6x] DSP halts after sometime
To: n...@yahoo.co.in
Cc: c...
Date: Wednesday, 18 February, 2009, 12:48 PM

Nishank,

On Tue, Feb 17, 2009 at 1:17 PM, nishank pathak
wrote:
> Hi All,
> I am coding a speech enhancement system on TI 6713. The sampling rate is
> 8Khz. After running for around 12 seconds the dsp halts by itself. It does
> not give any error. Can anyone help?


The first step is to properly describe the problem [or for me to
understand the problem].
Q1. Is CCS connected when the DSP 'halts'??
Q2. How did you determine that the DSP was halted??

Note:
If an emulator is not connected, there is no way to tell if the DSP is
halted [the only way for it to 'halt' is by executing an idle
instruction which halts until an interrupt occurs], in an infinite
loop, or 'in the weeds' executing garbage.

If an emulator is connected, the above conditions plus hardware or
software breakpoints can halt the c6713 [breakpoints, AET, and the
halt command from CCS are the only things that can truly halt the
target].

Now to the real problem description - 'program processes audio
correctly for 12 seconds before appearing to hang'.
The most like 'suspects' in my guestimated order of likelihood.
1. memory deallocation problem, aka 'memory leak'. Program runs until
memory is exhausted.
2. pointer management or pointer arithmetic problem.
3. race condition in the code resulting in deadly embrace. If the
failure occurs at exactly the same point, this is likely not the
problem.
4. logic problem in the code.

Hopefully this will get you started.

mikedunn
>
> Thanks
> Nishank
>
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________
pathak,

just a few suggestions..

where did the program stop?
what does the call stack look like?
is the code at the stop location and all the first step back in the call stack
still correct or is it corrupted?

*I* would suspect the stack or the code has been corrupted, possibly from a
'wild' pointer or unrestrained table/array index.

R. Williams

---------- Original Message -----------
From: nishank pathak
To: c...
Sent: Wed, 18 Feb 2009 00:47:26 +0530 (IST)
Subject: [c6x] DSP halts after sometime

> Hi All,
> I am coding a speech enhancement system on TI 6713. The sampling rate
> is 8Khz. After running for around 12 seconds the dsp halts by itself.
> It does not give any error. Can anyone help? Thanks Nishank
------- End of Original Message -------

_____________________________________