Hello,
A friend told me his problem of using pointer in DSP6416 and I don’t know how to fix it.
The code is listed below:
pixel=(unsigned char*)0x00025000;
ssat=(unsigned int*)0x00090000;
ssat[0]=pixel[0]*pixel[0];
for (i=1;i<320;i++)
{
ssat[i]=ssat[i-1]+pixel[i]*pixel[i];
ssat[i*320]=ssat[(i-1)*320]+pixel[i*320]*pixel[i*320];
}
for (i=1;i<240;i++)
{
for (j=1;j<320;j++)
{ ssat[i*320+j]=ssat[i*320+j-1]+ssat[(i-1)*320+j]+pixel[i*320+j]*pixel[i*320+j]-ssat[(i-1)*320+j-1]; }
}
The error is that Trouble running Target CPU: Error 0x0000000C/-2044 Error during: Register, Break Point, No breakpoint at 0x00000000.
Error: Error 0x0000000C/-2044 Error during: Register, Break Point, No breakpoint at 0x00000000.
He used the CCS2.2 and CCS3.3 to compile the code, but met the same problem.
So thanks for your reply.