How to break out of infinite loop?
StephaneCharette
Posts: 2
in BASIC Stamp
Accidentally created an infinite loop in my program. Now when I try to download a new version of our software, the Parallax IDE says "No BASIC Stamps found" since I'm guessing it is stuck running that infinite loop.
How do we stop it from running so we can update our program?
Board of Education USB, rev D.
For the record, the infinite loop is a "DO UNTIL (counter >= 10000)" where we forgot to increment counter inside the loop. And the loop contains a FREQOUT to the piezospeaker, so I can "hear" the loop running.
How do we stop it from running so we can update our program?
Board of Education USB, rev D.
For the record, the infinite loop is a "DO UNTIL (counter >= 10000)" where we forgot to increment counter inside the loop. And the loop contains a FREQOUT to the piezospeaker, so I can "hear" the loop running.
Comments
It might be a matter of timing your connection with the reset switch, but that's just a guess.
Programming problems can occur if the program has a DEBUG statement at the start with no delay for the computer serial ports to stabilize.