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.

FFT Cycles doesn't Count

Other Parts Discussed in Thread: TMS320C6670

Hi,

I use TMS320C6670 to run the fft example in directory C:\Program Files\Texas Instruments\dsplib_c66x_3_1_0_0\packages\ti\dsplib\src\DSP_fft32x32

But, as we can see in the picture I put below, the counted cycles doesn't appeared, and just show zero value. I've checked before that all the time variables from clock() procedure always give zero value. I also have checked the other examples but the cycle results are always zero too.

Can somebody help me please??

Thank you

  • Anugerah,

    Before we try to figure out which forum this should have been placed (probably BIOS for library support), can you please explain about the example program you are running? The path you supplied is for the DSPLIB function and not an example test project.

    I am not familiar with any TI examples that would use the clock() function. This is usually implemented as a real-time PC-based Time Of Day function, and it is not efficient for benchmarking embedded processor applications. Instead, we either use direct calls to get the TSC counter values or SYS/BIOS calls to Clock_* functions.

    So, I am not sure if your problem is in your own benchmarking code or in the library functions, or if you are using a TI example that I am not familiar with. Your helpful explanation will show us how to move forward.

    Regards,
    RandyP

  • Randy,

    This is the full path for the example project

    C:\Program Files\Texas Instruments\dsplib_c66x_3_1_0_0\packages\ti\dsplib\src\DSP_fft32x32\c66\DSP_fft32x32_66_LE_ELF

    The files in that project which use clock() can be found in file DSP_fft32x32_d.c. I read in another post that this example project (not exactly this project, but another example in directory C:\Program Files\Texas Instruments\dsplib_c66x_3_1_0_0\packages\ti\dsplib\src) should give the difference of cycles before and after fft to measure the performance, but my example project just can't do that.

    I'll appreciate your help

    Thank you

  • If you run it from CCS, try to enable the clock if you have not done it already

     

    It is in the RUN tab, 

     

     

    Ran

  • Thanks a lot Ran, it works