JTAG slow down

Started by Richard Wimmer May 2, 2006
I use a EWARM IDE and JLink debugger on a LPC2103.
The code is now very simple and executes in a endless main loop
(toggling port pin in less than 8 us).
When I attach the JTAG the execution takes 35ms. This is due to the
function call, which has been compiled not in sequence from the main.
Modifying the compiler setting and when the program runs from memory
location in sequence the long timing problem disappears.

How and why does the debugger influence the execution time?
How can I minimize this effect?
Thank you all

An Engineer's Guide to the LPC2100 Series