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.

CCS: how to static clock period in ccs

Tool/software: Code Composer Studio

hello TI,

i am doing C66 programming On JTAG with CCS

if i optimize a function, i need to know the how much clocks was optimized ,

should i use getimeofday()?

or TI will provide a better way to static clocks in CCS?

thanks very much

  • Hello,

    There are several options for benchmarking on your device.

    The simplest is to use the profile clock. This is supported by CCS with all debug probes and requires no instrumentation in your code. You can use the profile clock to easily measure the cycles it takes to execute a function.

    Your device likely supports HW trace. HW trace is a powerful tool that can be especially helpful for non-intrusive benchmarking. The capabilities of trace can vary depending on the exact device and debug probe used. 

    If your program uses TI-RTOS, you can use TI-RTOS APIs for benchmarking (see section 5.5 of the SYS/BIOS user's guide). This would require adding some instrumentation to your code.

    And of course there are other instrumented benchmarking options you can add in your code.

    For a quick and simple profiling option for measure cycles from point A to point B, the profile clock is recommended.

    Thanks

    ki

  • thanks very much Ki

    i know how to static cycles

    and another question,

    i am now debugging C66 DSP code in CCS + JTAG mode

    and i compile the code with CCS

    and there is a lnk.cmd in this CCS project

    and "-heap  0x8000" is written in the lnk.cmd

    i directly changed the heap size to "-heap  0x80000", the programme can NOT run correctly

    if i want change heap size, what should i do?

    thanks very much

  • Please refer to the reply by George in your other thread:

    https://e2e.ti.com/support/tools/ccs/f/81/p/880025/3255769#3255769

    Thanks

    ki