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.

Compiler/EVMK2G: Profile Clock giving wrong values

Part Number: EVMK2G


Tool/software: TI C/C++ Compiler

Hello,

I've been trying to debug some code; specifically the AIC31_Stereo_Loopback code for the EVMK2G eval board.  I've been following these instructions:

However, I'm getting insanely high values for the clock cycles.

My setup is identical to the site linked: Count is "CPU Execute Cycles", Reset Option is set to "Manual".  The code I'm profiling does indeed have a callback function in it, but regardless if I increment a variable inside the callback, or the first line of my program before the callback is even set up, I get ~4,000,000,000 clock ticks for one line of code (i++).

I'm not sure what this might be attributed to.  I initially had this problem with CCS 6.1.3 (I believe it was), but just updated to 7.0 today and saw no change.  The values are the same, ~4billion clock ticks for trivial lines of code.  The number of ticks /does/ change every time (ie, it's not just some constant), and with more complex lines of code the ticks do go up... I'm not sure what's going on.

Thanks in advance.