Hello: I am trying to use an arduino mega1280 to flash a bootloader on to a 2560, and i'm getting fail.
the 2560 is on a board I designed, but i'm an idiot and forgot to put an ICSP header down, so i soldered to via's, making sure the connection was good with a DVM. the 2560 is powered from a wall wort, so i also power the 1280 from the same power (so both share the same power supply). I also connected MOSI\MISO\SCK from the mega1280 to digital pins as shown in this picture:
here is a pic of my setup:
Here is what I do:
- plug in power, wait a few seconds, then plug in usb
- fire up arduino ide 1.0, burn ArduinoISP to mega1280
- change board to mega2560, make sure arduinoISP is selected in programmer, and attempt to burn bootloader.
the first time i try, i always get the same error:
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
the second and subsequent times i try to burn bootloader, i get this error:
C:\Users\killa\Desktop\arduino-1.0\hardware/tools/avr/bin/avrdude -CC:\Users\killa\Desktop\arduino-1.0\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v1 -P\\.\COM26 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "C:\Users\killa\Desktop\arduino-1.0\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM26
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude done. Thank you.
after reading, i see that this error is in general due to the arduino not getting the proper reset, and most say hold the reset button and release when it finishes compiling... but when you burn a bootloader, you do not get the same output, and don't know when to release the reset switch.
any suggestions?