Pages: [1]   Go Down
Author Topic: [SOLVED] recovering the control of my arduino  (Read 563 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
stk500_recv(): programmer is not responding
¿Some ideas to recover the control?

It's an Arduino Uno
« Last Edit: April 18, 2011, 02:47:34 pm by xoel » Logged

Connecticut
Offline Offline
Edison Member
*
Karma: 17
Posts: 1216
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yikes! Try holding down the reset button and uploading the blink sketch.
I tryied and didnt work  smiley-sad
If reset button is hold, I have this message:
 smiley-slim smiley-confuse smiley-confuse smiley-confuse 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:
The solution was:
Plug the USB, and after... ¿600 ms? (Dont know) press the 'send' button. Not reset button needed
« Last Edit: April 18, 2011, 02:49:55 pm by xoel » Logged

Connecticut
Offline Offline
Edison Member
*
Karma: 17
Posts: 1216
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.)



Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, solved when I was modifying the post before

It's an Arduino Uno
Logged

Connecticut
Offline Offline
Edison Member
*
Karma: 17
Posts: 1216
RTFD (Datasheet in our case)
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: