How to get the time spent on the program executing in S32DS ?

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

How to get the time spent on the program executing in S32DS ?

2,160 次查看
evalin
Contributor III

I use MPC5775K now,and I have some problems about debug configuration.I want to get the time spent  on the  program executing,how can I know the time  through the relevant configuration?thanks a lot.

标签 (1)
标记 (3)
2 回复数

1,897 次查看
stanish
NXP Employee
NXP Employee

Hi Eva,

I assume you are using PEMICRO debug interface. 

I'm afraid this probe does not support such a feature by hardware.

There are 3-rd party debug probes (e.g. by Lauterbach) that allows this feature.

Anyway there are some techniques that allows you to measure the execution times regardless of debug probe you have.

If you 'd like to measure an execution time of a certain function you can use e.g.an internal timer (such as Time Base Module on e200 core). Take the time-stamps before and after the function is executed and calculate execution time.

Other method could be toggling with a GPIO pin and measure the time on external Scope.

Does it answer your question?

Stan

1,897 次查看
nxppower912935
Contributor IV

Hi,

I read that MPC5748G does not have TBM, so which timer or module can you recommend?

Regards

0 项奖励
回复