Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Debugging from flash

2005-10-29 by Eric Engler

> What I haven't seen in any of the descriptions of ANY available
debugger 
> for the ARM microcontrollers is one with a decent watchpoint
facility.  One 
> that would allow you to set a break when a certain value was written
to a 
> certain location or range of locations for instance (while running
at full 
> speed of course).

I can only think of 2 ways to implement flexible conditional breakpoints:

1) set an undconditional breakpoint "behind the scenes". and when it
breaks, the PC will request data on memory contents and the PC decides
if it will break for the user, or if it will reset the breakpoint and
continue execution. This is slow, but easy to implement.

2) the highest performance is done by downloading some extra assembler
code to the ARM. Set an unconditional breakpoint, and when it breaks
the ARM assembly code will evaluate the condition, and decide what to
do. This is almost full speed, but it's harder to implement.

Eric

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.