What's the proper way to use a MEGA2560 to load a boot loader on another MEGA2560? I'm sure I'm doing something trivially wrong, but I don't know what.
I've tried the following:
- Successfully Flashed Arduino ISP onto a MEGA2560... let's call this "The Programmer"
- Environment:
- ArduinoIDE 1.8.8
- OSX Mojave
- Arduino IDE settings:
- Board to MEGA2560
- Processor to MEGA2560
- Port to the "The Programmer"
- Programmer to "Arduino ISP"
- Physical stuff:
- Connected the ICSP, pin for pin between the "the Target" and "The Programmer"
- The Programmer
- Placed a 10uF cap (Neg strip to Gnd) on Reset and Ground.
- Connected to the computer via USB
- The target board
- Connected to computer USB for power. (Powered via USB on computer)
- Clicked "Tools -> Burn Bootloader"
- Held down reset button on "The Target"
- Avrdude starts... output is as follows:
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega2560 -carduino -P/dev/cu.usbmodem146201 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8: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 "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/[REDACTED]/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/cu.usbmodem146201
Using Programmer : arduino
Overriding Baud Rate : 19200
AVR Part : ATmega2560
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
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 10 8 0 no 4096 8 0 9000 9000 0x00 0x00
flash 65 10 256 0 yes 262144 256 1024 4500 4500 0x00 0x00
lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
lock 0 0 0 0 no 1 0 0 9000 9000 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.01s
avrdude: Device signature = 0x000000 (retrying)
Reading | ################################################## | 100% 0.01s
avrdude: Device signature = 0x000000 (retrying)
Error while burning bootloader.
Reading | ################################################## | 100% 0.00s
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.
Seems, like it never flashed the boot loader.
Does anyone know what I maybe doing wrong?
Can a bootloader be updated, reburned?
I'm using a spare Mega2560, to try and burn a bootloader, ultimate goal, is to burn a bootloader on a RAMBo 1.3L board... which is also a atmega2560.
Any guidance would be appreciated.
I've tried a pololu 1300, firmware 1.08, to try this... but go no further then listed above...