might have crashed my arduino during setup()

Hi all,

Am after some advice on how to resolve this one.

So I've been building a library that has been working totally fine so far but after a rogue bit of code got uploaded (me being an idiot and not being careful with pointers to memory I shouldn't have touched) I am worried that I'm now crashing the arduino during the call to setup(). This crashes, restarts and then crashes again etc.

The result of this is it's happening so fast I can't upload anything to my arduino.

First off has anyone ever experienced this before?

Second has anyone got any clever ideas on how to fix it?

For reference I'm using a Freetronics 2010 and regarding background:

  • I have nothing plugged in except the serial cable. The code I'm writing is heavily serial based and I am just blinking LED on D13 to satisfy myself it's working (as well as pushing and pulling all the serial data back and forth).
  • Up until my dodgy single line of code everything had been working perfectly normally right up until that moment, dozens of uploads tonight and many more before then.

So if anyone can help I'd be rather grateful...

Cheers
ajfisher

Sometimes you can upload a new sketch if you hold down the Reset button, unplug and re-plug the USB connector, click on the sketch upload button, and release the Reset button when you see the "Binary sketch size:" message in the sketch window.

JohnWasser - don't ever let anyone tell you different. You Sir, are a genius.

Pure gold - worked first time... I now have good old blinky back. So I can try and nuke it again later.

Thanks again.

Cheers
ajfisher