DWT support for ARM Cortex LPC122x

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

DWT support for ARM Cortex LPC122x

971 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by maxve2011 on Tue Jul 19 03:47:26 MST 2011
Hi all,

I was wondering if there is DWT (data watchpoint and trace) support for LPX122x processors in CMSIS library V2.00??
If not, can I add support for DWT myself?
I need that support because for a project I want to determine the execution/elapsed time for some functions.

Any help I will appreciate very much!

Max
0 项奖励
回复
3 回复数

921 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by maxve2011 on Tue Jul 19 10:56:01 MST 2011
Thanks CodeRed support!

My question about measuring execution/elapsed time in source code has been solved.

Max
0 项奖励
回复

921 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jul 19 08:55:41 MST 2011
The LPC122x MCUs are based on Cortex-M0. DWT is only available on Cortex-M3 based parts.

One way of measuring your execution time might be to use the systick timer (or even just one of the general timers). Start the timer immediately before your code, then examine the timer counter after your code finishes executing.

Regards,
CodeRedSupport.
0 项奖励
回复

921 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Tue Jul 19 06:55:34 MST 2011
Sounds like a job for Red Probe+

http://www.code-red-tech.com/red-probe-plus.php
0 项奖励
回复