Hi,
I'am using FFTC in a single core application. The code almost identical to the FFTC_Simple_testProject. If the rxCfg.bBlockOnResult bit is set to 1 during the debug the application just wait forever for the result at this stage:
if ((retVal = Fftc_rxGetResult (hRxObj,
&hResultInfo,
&pResultBuffer,
&resultLen,
&pResultPSInfo,
&rxPSInfoLen,
&rxFlowId,
&rxSrcId,
&rxDestnTagInfo
)) != FFTC_RETVAL_SUCCESS)
{
Fftc_osalLog ("[Core %d]: Invalid FFT result : %d \n", coreNum, retVal);
goto error;
}
The retVal is always -4, which is meant that there is no pending FFT result available for the application's Rx object. The Rx object created successfully (queue 708 by default for FFTC_Inst_A).
If rxCfg.bBlockOnResult bit is set to 0, i get this message:
Invalid result length, expected: 4112 received: 8576760
[Core 0]: Error parsing result, error: -6/
So I'am sending 1024 samples with one block to the FFTC, and it return me 8 mil values. This return value doesn't depend from the elapsed time (checked with for cycles up to 10k iteration).
Checked everything twice and compare with example project, maybe someone has a hint where to look?
I have a guessed that maybe I getting the wrong Rx queue, but in this case there will be a different error message and program will not get to the stage of retrieving FFT result.
Regards, Pavlo!