This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TMDSDSK6713
Hi Team,
Can you please help with the inquiry below?
A customer written a DSP code that was supposed to run in an infinite loop however, it only run once during debug. can you please check?
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
int i;
int count=0;
int px=0;
float w0[8];
int L=4;
int N=6;
double signal[8]={1,2,3,4,5,6,7,8};
double h[4]={2,1,0,3};
float buffer1[6];
int main()
{
w0[count]=0;
buffer1[px]=signal[count];
for(i=0;i<L;i++)
{
w0[count]=w0[count]+((h[i]*buffer1[(px-L+1+i)%N]));
}
count=count++;
px=(px+1)%N;
return 0;
}
Thanks in advance.
Regards,
Marvin
Hello Marvin,
I don't see where the infinite loop is in the code. Can you please clarify?
Meanwhile, I'll loop in our compiler team for further help.
Regards,
Jianzhong