JTAG slow down
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