Go Down

Topic: Bootloader with arduino uno Rev3 as isp? (Read 3 times) previous topic - next topic

Shadow2917

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

Coding Badly


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


Shadow2917

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?

Claghorn

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
http://home.comcast.net/~tomhorsley/hardware/arduino/arduino.html

Shadow2917

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

Shadow2917

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

Claghorn

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.
http://home.comcast.net/~tomhorsley/hardware/arduino/arduino.html

Coding Badly

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.

Shadow2917

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.

Coding Badly

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


Which idea?  Capacitor or OptiLoader?

Shadow2917

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

Coding Badly


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

Shadow2917

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!

Coding Badly


• 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

Go Up