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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

431 次查看
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 项奖励
回复
1 回复

423 次查看
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 项奖励
回复