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.

TMS570LS1224: Best practices for measuring execution time of functions/instructions?

Part Number: TMS570LS1224

Dear TI Experts,

I am interested in finding out what the best practices are for measuring the execution time of a TI TMS570LS1224?

Specifically, what I am trying to find out is how much time [ms] is required for the MCU from reading the interrupt vectors (location 0x00..) until branching into the main() function?

I imagine it can be done by using a logic analyzer and toggling a GIO pin (Low->High) at the beginning _c_int00() inside sys_startup, then toglling it once more (High->Low) just before main() and then seeing how long it took. Then measure how long only a pin toggle takes by toggling a GIO pin Low->High->Low somewhere in main() and substracting it from the previously measured time for _c_int00().

The problem in this use case is that I am not sure whether the GIO pins can be toggled as the first thing in _c_int00() before initializing the GIO, which takes additional time itself!

Any help is appreciated!

Thank You for the reply in advance,

Mihail