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.
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?
I read that MPC5748G does not have TBM, so which timer or module can you recommend?
Retrieving data ...