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.

Measuring execution time of the startup code in TMS570lc4357

Other Parts Discussed in Thread: TMS570LC4357, HALCOGEN

Hello TI

I'm seeking TI's help to know how to measure the startup code of Halcogen generated TMS570LC4357 driver code.

I want to measure the time taken for executing code between

void _c_int00(void) in HL_sys_startup.c 

and

void main() in HL_sys_main.c

I don't want to use Pin toggling method as gioInit() can be done only after core register Initializations.

Thanks in advance

  • Sindhu,

    You can either use the XDSPROTRACE emulator,  or in CCS you can break at c_int00,  enable the CPU cycle counter in CP15 (PMU) and run to main() then check the cycle counter value.   The cycle counter shows up in the registers window.

    You have to set 2 bits  (red arrows) then the counter will count as long as the CPU is running.

    It stops counting when the CPU is halted so if you run from c_int00 to main it'll be reasonably accurate within a few cycles.