Hi All,
I used a simple program for C28 to measure the execution time of C28 FCU fast RTS library function sincos() . I did a comparison test on the execution time in CPU cycles for the sincos() function by running the code from Flash vs RAM. Here's the test condition and result.
The clock rate of C28 is set to 150Mhz, Flash is configured with 3 wait state. The FPU math table is located in single-wait Boot ROM.
When the code runs from flash, it takes 156 cycles to calculate sincos(). However, if the code runs from RAM, the timing reduces to 46.
Apparently the performance of running code from Flash is not good. Is it mainly due to the 3 wait state for accessing the Flash? The wait state number is recommended by TI while the C28 clock rate is at 150Mhz, is it an expected behavior running the code on Flash?
Thanks!
Holly