I'm trying to use arduinoISP to install a bootloader on a 1284p without much success.
However for repeatability, I have performed the details below using a 328p
ISP Board - Arduino diecimila atmega168
Target Board - Arduino diecimila atmega328p
Arduino IDE 1.0 for macosx
arduinoisp.ino from GitHub - rsbohn/ArduinoISP: Use the Arduino to program AVR chips.
1 - Program the ISP board bootloader using usbtinyISP
tools->board->arduino deicimila w/ ATmega 168
tools->programmer->usbtinyISP
tools->burn bootloader
Debug / verbose output /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude - Pastebin.com
This leads to a board with pulsing pin13 LED
2 - Program ISP board with ArduinoISP
Download ArduinoISP.ino from github as above
Open in arduinoIDE
Verify - output /Applications/Arduino.app/Contents/Resources/Java/hardware/t - Pastebin.com
Upload - http://pastebin.com/9Z1jasCu
3 - Connect target board to ISP Board.
Connections as per http://arduino.cc/en/uploads/Tutorial/arduinoisp.png
4 - Program targetboard bootloader
tools->board->arduino duelimnova w atmega328
tools->programmer->arduino as isp
tools->burn bootloader
this leads to "Error while loading bootloader" full output here /Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude - Pastebin.com
I believe this to be down to the autoreset of the diecimila, adding a 110ohm resistor between 5v and reset on the ISP board, repeating the programming step I now get
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude -C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega168 -cstk500v1 -P/dev/tty.usbserial-A4001l0H -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x00:m -Uhfuse:w:0xdd:m -Ulfuse:w:0xff:m
avrdude: Version 5.11, compiled on Sep 2 2011 at 18:52:52
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf"
User configuration file is "/Users/swp/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/tty.usbserial-A4001l0H
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding
avrdude done. Thank you.