How to record the time cost for a function in MPC5748g?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to record the time cost for a function in MPC5748g?

433 Views
Eric_Chen99
Contributor II

Got a function generated from simulink, need to test the running time of this function, how can i get the whole time cost for this particular function in MPC5748g project ?

0 Kudos
Reply
1 Reply

425 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

You can toggle pin before and after the function calling and measure the it by scope. Or you can trigger timer as STM or PIT and read the value.

Or use some advanced debugger with TRACE capability what should be capable to show it directly.

0 Kudos
Reply