Hi everyone,
Even after the reading of http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/146974.aspx and http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/21202.aspx I still have some issues with my FixedPoint FFT (my previous floating point was working well).
Here is my code :
#include "fft.h" #define FFT_SIZE 1024 // FFT SECTIONS RFFT32 fft=RFFT32_1024P_DEFAULTS; #pragma DATA_SECTION(Fft_in,"FFTIN"); long Fft_in[2*FFT_SIZE]; #pragma DATA_SECTION(Spectro,"FFTOUT"); long Spectro[(FFT_SIZE/2)+1]; // FFT CALCULATION void realfft(void) { fft.ipcbptr=Fft_in; fft.magptr=Spectro; fft.init(&fft); RFFT32_brev(Fft_in,Fft_in,FFT_SIZE); fft.calc(&fft); fft.mag(&fft); }
And my magnitude buffer Spectro stays empty... Should I move on CFFT32 like Vishal said in the other topic ? Or do you find any error that could explain that ?
Btw, I didn't really understand how this RFFT works (when the Floating Point FFT is logical, this one is hard to understand), if you have further explanation, I'd be glad to read them ! (datasheet read and re-read).
Regards,
Alex