lpcware

Debugger Issues

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by richas on Tue May 14 13:28:14 MST 2013
I was having issues with the debugger (LPC1768, Red Probe+) where I had to always start the debugger twice, the first try would produce a "flash init" error.

I FINALLY traced the issue to a variable in the timer0 ISR.  The variable is simply used as a flag to toggle a "heartbeat" LED.

The variable was declared as static int inside the ISR.  I moved the variable to the top of the module and declared it as volatile and the issue is gone, the debugger starts without errors each time.

Ideas?

Rich

Outcomes