Error Using 2560 as ISP for Lilypad

Hello! I have the following setup:

Arduino Mega 2560 connected to breadboard. LED's hooked up to pins 7-9, capicator on reset-ground on 2560, and the SCK, MOSI, and MISO pins connected to the lilypad, and to their corresponding pins on the mega 2560 as indicated by the sketch for ARDUINO AS ISP. I got this error message:

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Using library PalatisSoftPWM in folder: C:\Users\Andrew\Documents\Arduino\libraries\PalatisSoftPWM-master

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR -IC:\Users\Andrew\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.5\cores\arduino -IC:\Users\Andrew\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.5\variants\mega -IC:\Users\Andrew\Documents\Arduino\libraries\PalatisSoftPWM-master C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\JojoDress_prototype_3.cpp -o C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\JojoDress_prototype_3.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\hooks.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\WInterrupts.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\wiring.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\wiring_analog.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\wiring_digital.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\wiring_pulse.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\wiring_shift.c.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\abi.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\CDC.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\HardwareSerial.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\HardwareSerial0.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\HardwareSerial1.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\HardwareSerial2.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\HardwareSerial3.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\HID.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\IPAddress.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\main.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\new.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\Print.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\Stream.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\Tone.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\USBCore.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\WMath.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\WString.cpp.o

Using previously compiled file: C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\core.a

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc -w -Os -Wl,--gc-sections,--relax -mmcu=atmega2560 -o C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/JojoDress_prototype_3.cpp.elf C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp\JojoDress_prototype_3.cpp.o C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/core.a -LC:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp -lm

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/JojoDress_prototype_3.cpp.elf C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/JojoDress_prototype_3.cpp.eep

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy -O ihex -R .eeprom C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/JojoDress_prototype_3.cpp.elf C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/JojoDress_prototype_3.cpp.hex

Sketch uses 6,488 bytes (2%) of program storage space. Maximum is 253,952 bytes.

Global variables use 358 bytes (4%) of dynamic memory, leaving 7,834 bytes for local variables. Maximum is 8,192 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega2560 -cstk500v1 -PCOM3 -b19200 -Uflash:w:C:\Users\Andrew\AppData\Local\Temp\build1472781655208487636.tmp/JojoDress_prototype_3.cpp.hex:i

avrdude: Version 6.0.1, compiled on Apr 15 2015 at 19:59:58

Copyright (c) 2000-2005 Brian Dean,

Copyright (c) 2007-2009 Joerg Wunsch

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

Using Port : COM3

Using Programmer : stk500v1

Overriding Baud Rate : 19200

AVR Part : ATmega2560

Chip Erase delay : 9000 us


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 : STK500

Description : Atmel STK500 Version 1.x firmware

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: stk500_recv(): programmer is not responding

Problem uploading to board. See for suggestions.

Not sure what is causing this error, or what any of that stuff means. Do I have something hooked up wrong, or should I test a component for failure?

Your thread title indicates that you are trying to load the code onto the lilypad. But the messages indicate that you compiled the code for the mega. So which is the target and which is being used for the ISP.

agrady1995: Arduino Mega 2560 connected to breadboard. LED's hooked up to pins 7-9, capacitor on reset-ground on 2560, and the SCK, MOSI, and MISO pins connected to the lilypad, and to their corresponding pins on the mega 2560 as indicated by the sketch for ARDUINO AS ISP.

Did you connect Pin 10 to Reset on the target? Did you put LEDs on pins 7, 8 and 9?

I am using the Mega 2560 to program the Arduino lilypad.

I have the arduino ISP sketch loaded onto the Mega, and I know that it works because the heart pulse LED is working fine. I get the error light to come on when I attempt to load my sketch (even blink) into the Lilypad via the Mega (using ARDUINO AS ISP).

I have pin 11 on the Lilypad connected to pin 51 on mega. I have pin 12 on the lilypad connected to pin 52 on mega. I have pin 13 on the lilypad connected to pin 50 on the mega. REFRENCE: Arduino Lilypad Numbering

I have pin 6 connected to the ground/capacitor on the mega. (The other end is connected to the reset pin on the MEGA

Pin 3 (lilypad pic reference) is connected to GND on mega pin 2 is connected to 5v pin 1 is connected to ground.

The first line of your quoted output from OP:

Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

You compiled the sketch for mega and not lilypad. Change the board in the tools menu to the right board and see what happens.

So it looks like the answer to "Did you connect Pin 10 to Reset on the target?" is "No." That would explain why it doesn't work.

Life is much easier if you spend $5 to buy a USBasp via eBay. Then you can populate the ICSP header on your Lilypad and just plug in.

I did not have 53 on the MEGA connected to the RESET pin on the arduino. I did not know what a USBasp was until now, but I am going to get one. Thank you all for your time!