How to burn boatloader of UNO using MEGA

Hi,

I am trying to burn a new bootloader into my UNO SMD R2 through my MEGA 2560 R3.

I followed this procedure

  1. Powered on the MEGA

  2. Successfully Uploaded ArduinoISP to the MEGA

  3. Powered off the MEGA

  4. Wired the UNO to the MEGA following this schema

MEGA - 50 -> UNO - 12
MEGA - 51 -> UNO - 11
MEGA - 52 -> UNO - 13
MEGA - 10 -> UNO - RESET (capacitor 10 uF between reset and ground)
MEGA 5V -> UNO 5V
MEGA GND -> UNO GND

  1. Powered on the MEGA

  2. Tools Board -> Arduino Uno

  3. Tools -> Programmer -> Arduino as ISP

  4. Tools -> Burn Bootloader

Few seconds later I get the error:

avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x10
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

Is the my wiring correct ?

Tks

fab64:
MEGA - 10 -> UNO - RESET (capacitor 10 uF between reset and ground)

The capacitor goes on the MEGA between Reset (+) and Ground (-). This is to keep the auto-reset from resetting the MEGA.

If you look at the Examples->ArduinoISP sketch it says to use MEGA pin 53, not pin 10, for slave reset.

Step 2 of http://arduino.cc/en/Tutorial/ArduinoISP says:

"Note for Arduino 1.0: you need to make one small change to the ArduinoISP code. Find the line in the heartbeat() function that says "delay(40);" and change it to "delay(20);"."

Check that that has been done. I use 1.0.1 and that change in line 112 had been done.

Hi John,

many tanks for you replay.

I am using 1.0.1 too so delay was OK.

Now I have wired as you suggested:

MEGA - 50 -> UNO - 12
MEGA - 51 -> UNO - 11
MEGA - 52 -> UNO - 13
MEGA - 53 -> UNO - RESET
MEGA - capacitor 10 uF between reset and ground
MEGA 5V -> UNO 5V
MEGA GND -> UNO GND

Anyway, after issuing Tools -> Burn Bootloader I get:

avrdude: Expected signature for ATMEGA2560 is 1E 98 01
         Double check chip, or use -F to override this check.

What's wrong now ?

fab64:
Anyway, after issuing Tools -> Burn Bootloader I get:

avrdude: Expected signature for ATMEGA2560 is 1E 98 01

Double check chip, or use -F to override this check.



What's wrong now ?

I think you accidentally skipped a step:

  1. Tools Board -> Arduino Uno

You are right !!!

Bootloader update successfully.

Thank you again.