Hello,
I have been running Code Composer on a project that began with the BLDC sensored example code for F28069 and has had code added to it. I recently started using the RFFT example from the DSP libraries to take the FFT of arrays. When I first pulled this code in I tested it and it worked on the RFFT example of two sinewaves summed together. At some point I started getting garbage in the FFT result and as I have looked into it, the sinewave table that is used to calculate the test waveform and the twiddle factors is messed up. The following lines are in the MEMORY and SECTIONS part of the .cmd file, respectively:
FPUTABLES : origin = 0x3FD860, length = 0x0006A0 /* FPU Tables in Boot ROM */
FPUmathTables : > FPUTABLES, PAGE = 0, TYPE = NOLOAD
These were taken from the RFFT example code. When I go to location 0x3FD860 in the memory browser, after loading the code (and before running it), I see values somewhere well into the table. If I scroll upward, I see the start of the table is at 0x3FD590. However, the code still thinks the table is at 0x3FD860 and so the values it reads are wrong, and those values read beyond the end of the table (which is at 0x3FDA90) are garbage. Why is it locating the table in the wrong place?