Other Parts Discussed in Thread: CONTROLSUITE
I'm not understanding why I'm getting unexpected results when using the TI FFT library. Using the 2837x_vcu2_rfft_512 example project (from v2_10_00_00 in ControlSUITE 3.4.6). Here are the steps to reproduce:
1) Load CCS 7.1.0.00016.
2) Load the debugger without making any modification to the example project.
3) Set a breakpoint on the I the init() call and run to that line.
4) Use the "Load Memory" feature of the memory browser to load the attached input file to buffer1Q15, then graphed here:
5) Run a couple lines further, to after the unpack() call. The output in buffer2Q15 is here:
The input is generated using a hardware signal generator, so it's not perfect, but one wouldn't expect to see any substantial spikes outside of the first one. (Indeed, a Matlab FFT on the same input data is similar to as described.) I haven't experimented extensively, but in my original application when the sampling rate was 100 KHz with a 3 KHz sine wave, I'd see what looked like the odd harmonics; with 100 KHz and 4 KHz, it looked like the additional spikes were the even harmonics.
Am I overlooking something, or is this a bug related to the FFT library? Thanks.
-David





