Part Number: EVMK2G
Tool/software: TI C/C++ Compiler
Hi,
I'm running some code on the DSP of the EVMK2G, straight to metal (using the JTag emulator on the board). I'm not very experienced with DSP programming, and much less on the theoretical side. However, I wanted to profile some bit of code to make sure it can make timing constraints. I'm using the profile clock (the clock in the bottom right of CCS).
Before doing that, I wanted to test out profiling a trivial line of code.
uint8_t triv = 0; triv++;
I'm consitently getting 17 clock ticks for the triv++ line. Just the increment, nothing else.
Can someone tell me if that is reasonable for that line of code?
This might be a stupid question, but I've seen a bug with the profiler in the past, where I was getting wildly inaccurate clock results. The bug seems to come and go, for some reason.
I would like to be 100% sure that the profiler clock is working before I go ahead profiling our code.