When using the following line of code in my program (on a DSK6713 board), it crashes after a just a few minutes:
DSPF_sp_fir_gen(in, H, &out[LENH-1], LENH, bufferSize+bufferOverlap-LENH+1);
The filter coefficients H and LENH are defined as follows:
#pragma DATA_ALIGN(H,8); // aligns H to a double-word (8 byte)
const Float H[] = {-0.0634641714188635 , 0.593677714458985 , 0.530933189234723 , -0.0611467322748454};
const Uns LENH = 4;
And the in and out buffers are allocated like this:
in = (Ptr)MEM_calloc(0, (bufferSize+bufferOverlap)*4, 8);
out = (Ptr)MEM_calloc(0, (bufferSize+bufferOverlap)*4, 8);
So in, H, and even out are double-word aligned and also the other requirements for DSPF_sp_fir_gen are fulfilled.
After program crash, when I try to halt the processor, the emulator gives the following error message and I have to restart everything:
Trouble Halting Target CPU:
Error 0x80000020/-1070
Fatal Error during: Execution,
An unknown error prevented the emulator from accessing the processor in a timely fashion.
What am I doing wrong? Any ideas?
Kind regards
Robert