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

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

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

1,176 Views
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.

Labels (1)
2 Replies

913 Views
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

913 Views
nxppower912935
Contributor IV

Hi,

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

Regards

0 Kudos