Sign up ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free.

I've got a big problem with my new Arduino. I made a big mistake, and now I can't anymore connect to my arduino. Is there any possibility to recover the Arduino, or to stop the execution of code definitly?

Here my code:

void setup () {
  Serial.begin(9600);
}

void loop () {
  Serial.write("Hello World!");
}

My problem is, that this code is executed so immediatly after booting the Arduino, and I can't upload something different to the Arduino...

Please help me.

share|improve this question

4 Answers 4

up vote 11 down vote accepted

Ok thanks, I found the solution yesterday:

  1. Unplug the USB cable
  2. Hold down Reset
  3. Plug in the USB cable
  4. Upload Code from IDE
  5. Release the Reset Button after seeing the compile done message
  6. AND NOW IT DOES IT'S JOB GOOD AGAIN.
share|improve this answer
    
Feel free to select this as the answer to your own question. – Kevin Vermeer Mar 31 '11 at 20:56

I have just solved this type of problem on my Arduino Mega. I had uploaded the program given in Example →communication →MIDI and the Arduino went on transmitting data to serial port and I could't upload any new program.

What I did to solve:

  1. My Computer(Right Click) →Properties
  2. Device Manager
  3. Found Arduino in Port List and open properties of it. (only available when it is connected to PC)
  4. Port Setting →Advanced
  5. Uncheked the Use FIFO Buffers

  6. Then uploaded

    • I think the continuous receiving of data for computer can full the FIFO Buffers
    • I wish it works for all Arduino
    • I just tested on Arduino Mega 2560 ADK and worked
share|improve this answer

Looking at the bootloader code. It seems that sending '0' to the Arduino as early as possible might hold it in bootloader mode.

Try sending "0000000000" to the Arduino, followed quickly by uploading your code.

Failing that, use another Arduino to program yours via the ISP pins.

share|improve this answer

Try this troubleshooting guide. The Auto-reset section may help.

share|improve this answer
1  
just giving a link does not qualify as an answer. A good answer should explain a solution and give links to source for more detailed information and attribution. This is currently a comment, please expand it and make it great! – Kortuk Mar 31 '11 at 20:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.