Hello all,
I am using a 6713 DSK. This question is partially to do with my previous post here:
http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/p/317406/1105159.aspx#1105159
The code I am working has the following format:
stft_function(); // Short time Fourier transform
stft_function(); // Short time Fourier transform
for(k=0;k<nfreq;k++) // Loop around and perform some preprocessing on each frequency bin
{
// processing here takes some time - but completes within a few seconds
}
for(iter=0;iter<maxiter;iter++) // Main processing loop
{
// Some code here
}
// Test to see if the code has completed running goes here!
My problem is when I include some sort of test to verify if my code has completed (for example an LED turning on), the code seems to get stuck in the STFT function or within the preprocessing loop. Without a check at the end I can run the code to the end of the first iteration of the main loop, then for a few iterations afterwards (I've ran it to about the 50th iteration, but this loop has a maximum of 1000 iterations).
Why would a piece of code get stuck just because I add some extra code?
I've stepped through the code when it's been stuck in the STFT function and it fails because one of the loop indexes suddenly changes, seems like something is corrupting it.
I am not expected someone to solve my problem completely but it would be helpful if I was pointed in the right direction,
Many thanks,
Jack