time spend between two break points in debug process

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

time spend between two break points in debug process

1,280 次查看
andresfelipecas
Contributor II

hi, I need to know the time spend in a piece of code, I suppose there is a tool to know the time between two break points in debug process. Does anybody know something like that in codewarrior 10?

标签 (1)
0 项奖励
回复
1 回复

1,147 次查看
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Andres:

What is the device you are using?

I know that this was possible with the S08 Full Chip Simulator, but other than that I think there is not a tool.

There are 2 common approaches to measure time:

1- Toggle an external pin and measure the time with the oscilloscope.

2- Run a timer module and verify the count difference between breakpoints. Then knowing the clock source of the timer (e.g. bus clock) you will know the time.


Regards!
Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------