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.

clock() function doesn't work for TMS320C5515

Other Parts Discussed in Thread: TMS320C5515

Hi,

I'm tying to use clock() function to get the clock tick on the TI TMS320C5515 DSP board. But the value returned is always 0. Does any have an idea of this?

Thanks,

Qingkun

  • Hi Li,

    Though I am not 100% certain, but i think clock() function works for simulators not for boards. For profiling on board, you will have to use the timer available in the board.

  • Hello,

    In order to make the clock() function work, you need to enable clock in Code Composer Studio. If you are using CCS v5, after connecting the target, go to 'Run' menu and click on 'Enable' under 'Clock' sub-menu. If you are using CCS v4, after connecting the target, go to 'Target' menu and click on 'Enable' under 'Clock' sub-menu. If you are using CCS v3, go to 'Profile' menu and select 'Enable' under 'Clock' sub-menu.

    Hope this helps.

    Regards,

    Rahul Nair