How to burning bootloader on UNO via MEGA 2560

There is useful info about burning bootloader, but no enough info about changes had to do in ArduinoISP sketch. For example, It is not clear frequancyof programmer or target must be entered in the sketch.
Could anyone tell what exactly to do for burning UNO with MEGA 2560?
I'v seen wiring in the link above, just exact coding and steps (is two or one steps).

shimidan:
but no enough info about changes had to do in ArduinoISP sketch. For example, It is not clear frequancyof programmer or target must be entered in the sketch.

That's because no changes are necessary. Just leave the ArduinoISP sketch alone. It's configured correctly just as it is when Arduino provides it.

shimidan:
Could anyone tell what exactly to do for burning UNO with MEGA 2560?

I think it's fairly well documented in the tutorial already, but here you go:

Connect your Mega 2560 to your computer with the USB cable.

Tools > Board > Arduino/Genuino Mega or Mega 2560

Tools > Port > select the port of your Mega 2560

File > Examples > 11.ArduinoISP > ArduinoISP

Sketch > Upload

Wait for the upload to finish successfully.

Unplug the Mega 2560 from your computer.

Wire the Mega 2560 to your Uno following this diagram:

Connect your Mega 2560 to your computer with the USB cable.

Tools > Board > Arduino/Genuino Uno

Tools > Programmer > Arduino as ISP

Tools > Burn Bootloader

Wait for the Burn Bootloader process to finish successfully.

Thank pert, it was useful, but maybe i have some fault. I'v used 47 micF instead of 10 micF.
however, i got error:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x38
avrdude: Yikes! Invalid device signature.

  • Double check connections and try again, or use -F to override*
  • this check.*
    Error while burning bootloader.


Please do this:

  • (In the Arduino IDE) File > Preferences
  • Check the checkbox next to "Show verbose output during: upload
  • Click "OK"
  • Tools > Burn Bootloader
  • After the Burn Bootloader process fails, you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the Burn Bootloader output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.
Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"

D:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CD:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM4 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.3-20171130
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard         : Unknown
         Vtarget         : 0.0 V
         Varef           : 0.0 V
         Oscillator      : Off
         SCK period      : 0.1 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.


avrdude done.  Thank you.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

I had done Loop-Back Test before burning. It was OK.