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.

Stop Watch in CCS



hello,

wich Debug Option in Code Composer Studio make "Stop Watch" how in AVRStudio?

i really want to know what the lenght of time the processor while debugging in CCS needs to perform a command

Youssef

  • You can use the profile clock to count events (such as cycles). It is available from the 'Target->Clock' in CCSv4 or 'Profile->Clock' in CCSv3.

    Thanks

    ki

  • i use CCSv3

    ok the clock schows 0 then 528 then 4,456 then 58... random values :-)

    i d'ont understand way?

    thanks for your help 

  • The clock will start counting cycles when enabled. It will update the count with each halt. It does not automatically reset with each halt. So it took 528 cycles (assuming you are counting cycles) to reach your first halt point. Then it took an additional 3928 cycles to reach the next halt point and added that to 528 for the total of 4456. Now I;m not sure what happened where the count became 58. The clock might have wrapped around or you reset it. You may want to check the documentation for the clock on the CCSv3 on-line help. It is well documented there.

    Thanks

    ki