DWT support for ARM Cortex LPC122x

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

DWT support for ARM Cortex LPC122x

968 Views
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 Kudos
Reply
3 Replies

918 Views
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 Kudos
Reply

918 Views
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 Kudos
Reply

918 Views
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 Kudos
Reply