I wrote a simply program that toggles an led on an off. I also added a counter and the debug command.
I notice that the counter is unstable - it occasionally gets reset to 0 and that after a certain point, say about 300 cycles, the led, debugger and counter all seem to stop...
What am I missing?