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.

Profile clocl using Debug server scripting

Hi,

I am using CCS 4.2 with 28335 EzDSP. I am using clock.enable() and clock.read() to check the time taken to execute a piece of code between 2 breakpoints. However, I want my target to run for specific amount of time and then halt it. Is it possible to do that using debug server scripting? Is there any API to halt the target after specific amount of time?

Thanks,

Bhavin

 

  • Hi Bhavin,

    One thing you can try is to set the script API timeout before the run API to the amount of time you wish to run for. Since the run API is a blocking call, it will wait until the target hits a breakpoint or the timeout to occur. Then you can have a halt call right after so the target is halted when the timeout occurs.

    Thanks

    ki