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.
Hello all,
I am using CCS v4.1.3 and I am developing on a C5515 eZdsp.
I am profiling some functions with the use of the CPU clock tool, measuring CPU cycles. Currently I am doing this manually with the use of breakpoints.
Is there a way to automate this using GEL expressions? From what I have seen breakpoints can either start/stop profiling and execute GEL expressions. Is there a GEL expression to read the CPU cycle value, store it somewhere and reset the clock counter?
I know that I could be doing this using the profiler, but for the actual hardware the profiler is really slow and have a lot more information than I need. So I was thinking of using the simple tool and automate it.
Thanks,
Elias
You can enable/disable the profile clock with GEL_EnableClock()
Pass in "1" to enable and "0" to disable
GEL_EnableClock(1); // Enable clock
GEL_EnableClock(0); // Disable clock
Read the clock by simply evaluating the CLK pseudo-register (note that CLK stores a 32-bit value)
reset it by setting CLK to '0'
CLK = 0;
Thanks
ki