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.

CCS/TMS320F28377D: when I use the controsuite example fpu/v1_50_00_00/rfft_adc, the fft result is not correct

Part Number: TMS320F28377D

Tool/software: Code Composer Studio

As the title, using the rfft_adc routine in v1_50_00_00 in controsuite, reading the data in RFFTin1Buff is very inconsistent with the calculated RFFTmagBuff result. The following is a comparison of the analysis results. The above is the fft of the data in RFFTin1Buff using matlab. The following is dsp calculate in the routine.   the fft config as follow. I hope you can give me some suggestion whether is my usage is wrong,thanks.

hnd_rfft_adc->Tail = &(hnd_rfft->OutBuf);

hnd_rfft->FFTSize = RFFT_SIZE; //FFT size
hnd_rfft->FFTStages = RFFT_STAGES; //FFT stages

hnd_rfft_adc->InBuf = &RFFTin1Buff[0]; //Input buffer (12-bit ADC) input
hnd_rfft->OutBuf = &RFFToutBuff[0]; //Output buffer
hnd_rfft->CosSinBuf = &RFFTF32Coef[0]; //Twiddle factor
hnd_rfft->MagBuf = &RFFTmagBuff[0]; //Magnitude output buffer

RFFT_f32_sincostable(hnd_rfft); //Calculate twiddle factor
RFFT_adc_f32(hnd_rfft_adc); // Calculate real FFT with 16-bit
RFFT_f32_mag(hnd_rfft); //Calculate magnitude