Pages: [1] 2   Go Down
Author Topic: Bootloader with arduino uno Rev3 as isp?  (Read 3525 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have tryed following the instructions here: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
And I keep getting this error right after I click "Burn bootloader":
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.
Any help would be MUCH apriceated smiley
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12855
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Disable auto-reset after uploading the ArduinoISP sketch...
http://arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection
Logged

Offline Offline
Newbie
*
Karma: 2
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did it work?
Logged

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

Well I tryed the first option with using a 120 ohm resistor between the 5v and the reset and no luck, still got the same error. Did you try a specific one that worked? Coding Badly?
Logged

Delray Beach, FL USA
Offline Offline
Full Member
***
Karma: 0
Posts: 113
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you be running into this?

http://code.google.com/p/arduino/issues/detail?id=661

I know I hit that problem and had to change ArduinoISP to use 9600 baud and the
programmers.txt file to tell the IDE to use 9600 baud, and then I was able to
program one Uno R3 with another one.

P.S. I didn't need to prevent the auto reset. Supposedly since optiboot 4.4,
the reset bypass is not necessary (and I had 4.4 on my R3).

Here's the thread where that tidbit shows up:

http://arduino.cc/forum/index.php/topic,100834.0.html
Logged


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

Ok well that could be part of the problem but I also know that I dont have optiboot so that could be another part... I went to that other forum post you included a link for and found this but really have no idea how do use it...
 https://github.com/arduino/Arduino/blob/master/hardware/arduino/bootloaders/optiboot/optiboot_atmega328.lst
Other than that, I will try to look at the ISP code and find the baud rate and change it for now...
Logged

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

Well now, that is interesting... What is the IDE? I changed the speed in the programmers.txt to 9600 and now I got a different error:
avrdude: stk500_getsync(): not in sync: resp=0xff
Logged

Delray Beach, FL USA
Offline Offline
Full Member
***
Karma: 0
Posts: 113
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't just change programmers.txt, you have to find the Serial.begin(19200) in the ArduinoISP sketch and change it from 19200 to 9600 as well (and reload it into the arduino you are using as an ISP). They have to agree on the baud rate.
Logged


Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12855
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Did you try a specific one that worked? Coding Badly?

>= 10uF capacitor connected from RESET to GND.  Don't forget to observe the polarity.

If you just want to install a bootloader in another processor, use OptiLoader.
Logged

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

I changed the baud rate in the ArduinoISP sketch to match "Programmers.txt" but I got the same error as before. I also tryed and failed with Coding Badly's idea aswell after I changed both baud rates back to 19200.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12855
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I also tryed and failed with Coding Badly's idea

Which idea?  Capacitor or OptiLoader?
Logged

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

The capacitor... I'm not really sure what you mean with the optiloader, could you expound?
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12855
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


Is the goal to install a bootloader on another processor?  Or, do you plan to do other work with your Arduino-as-ISP?
Logged

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

Well I got an Arduino for Christmas (hence why I am a newbie) and after learning how much power it had I began researching how to embed the atmega chip. So I ordered one and am now trying to make it so I can pop out the chip in my Arduino after loading a sketch on it and then just pop the next atmega in and have it work!
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 206
Posts: 12855
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


• Download OptiLoader to your sketch directory...
https://github.com/WestfW/OptiLoader

• Connect your Arduino to the target processor the same way you have it connected for ISP programming...
http://arduino.cc/en/Tutorial/ArduinoToBreadboard

• Upload OptiLoader to your Arduino

• Open Serial Monitor so you can tell if there is a problem
Logged

Pages: [1] 2   Go Up
Jump to: