Go Down

Topic: [SOLVED] recovering the control of my arduino (Read 664 times) previous topic - next topic

xoel

Apr 18, 2011, 11:32 am Last Edit: Apr 18, 2011, 09:47 pm by xoel Reason: 1
Hi everybody.
By error, I configured the pin #1 as LCD output, and now, I cant upload anything to the board.

LiquidCrystal lcd(12, 11, 5, 1, 3, 2);

"1" key is just under "4" key, and didnt see the error when I was typing  :smiley-roll-sweat:
Now, the TX led (pin 1) is constantly on, and I always get the same message:
Code: [Select]
stk500_recv(): programmer is not responding
┬┐Some ideas to recover the control?

It's an Arduino Uno

baum

Yikes! Try holding down the reset button and uploading the blink sketch.

If this doesn't work, do you have another arduino? Cause then you can program it over ICSP...


good luck!

baum

xoel

#2
Apr 18, 2011, 09:22 pm Last Edit: Apr 18, 2011, 09:49 pm by xoel Reason: 1

Yikes! Try holding down the reset button and uploading the blink sketch.

I tryied and didnt work  :(
If reset button is hold, I have this message:
:smiley-slim: :~ :~ :~ :smiley-eek: :smiley-eek: :smiley-eek: :smiley-eek:  (*)

And if I release the  button, I have this message:
Quote
Binary sketch size: 1018 bytes (of a 32256 byte maximum)
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00



If this doesn't work, do you have another arduino? Cause then you can program it over ICSP...


I can try, but don't know how, because the Tx is constantly trying to send signal to lcd.
I have another arduino.



(*)
Miraculously solved  :smiley-eek:
When I pressed the 'upload' button to copy the message, it worked  :smiley-eek:
And I tryied that more than 50 times, with all possible combinations:
Holding the reset button, then plugging the USB and send program, plugging and then pressing reset and send, etc...

Maybe the key is send the program in the exact moment that the arduino bootloader is charged, and the program isnt still running.

Code: [Select]
The solution was:
Plug the USB, and after... ¿600 ms? (Dont know) press the 'send' button. Not reset button needed

baum

Great! You'll have your arduino back in no time. I just need to know what type of arduino each one is. (duemilanove, uno, etc.)




xoel

Thanks, solved when I was modifying the post before

It's an Arduino Uno

baum

Great! Be careful as to not use pin 1 ever again!

Go Up