I'm developing with the LPC2220 processor, using IAR's Embedded Workbench (4.30A and J-Link. For some reason, about 30% of the time, when I run code in debug mode (using C-Spy) my timer and/or processor clock runs at incorrect speeds. Yet when I end the debug session, low assert the reset pin on the processor, and let it boot up using the code in flash, all clock speeds will run at the correct speeds. Is there a register in the processor or a setting in the IAR Embedded Workbench that I'm missing that would fix this problem?
Message
Discrepancy of timing during debugging versus non-debugging
2006-02-21 by Jeff Davis