Yahoo Groups archive

Lpc2000

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

Message

Breakpoint not stopping timer

2005-11-15 by Marko Panger

Hi all,

I am facing a  strange problem when debugging applications with match
compare timer interrupts enabled.
Hi all,

I have a timer match IRQ which fires every 1ms. Basically a ticker.
Because the timer is used also for other purposes I add a value of
1000 to the timer match register to get the next interrupt after 1ms
(timer clock is 1Mhz). I do also increment a variable in the match IRQ.

I have noticed that if I a put a breakpoint (it doesn't mater where,
IRQ or main loop) the IRQ isn't hit anymore. After playing around I
noticed that when the breakpoint is hit the timer still goes on for
some time, but without hitting the IRQ. Because of this the timer
count register goes ahead of the match register and the match does not
occur anymore. Further I discovered that when single stepping the
global ticker variable is incremented which means that single stepping
takes more than 1ms.

I am wondering that the internal JTAG logic has some flavors or is
this my debugger issue ? Has anybody else noticed such a behavior ?

Regards,
marko

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.