Mega328P ISP Programming via Mega2560 - Invalid Device Signature

Ive seen many discussions on this issue but not many solid resolves. I have several new DSWY_Robot Pro Mini 328P clones which I cannot load a sketch to, nor flash a bootloader, etc.

My config to try to communicate with these is by using a Sainsmart Mega 2560 which works great loaded with the ArduinoISP sketch. I have connected the the ISP headers on the Mega 2560 to the ISP headers on the Mini 328P. The only way I was able to get this far was to connect the reset pin on the 328P ISP header to the reset port on the Mega (port 53) and not to the reset pin on the Mega ISP header. Why I do not know.

But this is what I get:

C:\Users\Downloads\avrdude-6.1-mingw32>avrdude -c arduino -P COM3 -p m328P -v -v -b 19200 -Ulfuse:w:0xFF:m -Uhfuse:w:0xDE:m -U efuse:w:0x05:m

avrdude: Version 6.1, compiled on Mar 13 2014 at 00:09:49
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\gpoduska\Downloads\avrdude-6.1-mingw32\avrdude.conf"

Using Port : COM3
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.03s
avrdude: Device signature = 0x000000 (retrying)
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000 (retrying)
Reading | ################################################## | 100% 0.02s
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.

Any Ideas?

GP

Try Nick Gammon’s bootloader sketch instead.
Reset on the target board is driven by D10 (I think, read the page) of the source board, not the Reset pin on the ICSP header.

http://www.gammon.com.au/forum/?id=11635

I notice it says Oscillator : off

Is that telling me I need to provide a 8MHz or 16 external clock?

Read Nick Gammons code carefully all of your questions are covered including the clock crystal... a clock signal is provided in his programming sketch and yes the reset is connected to a pin controlled by the ISP code, Not the board reset. On an Uno it is pin 10, I've never used a mega for ISP programming... I have a dedicated Uno and a modified Adafruit programmer project shield where I connect the ISP reset to pin 10 instead of the board reset... It works well and I can program anything that has a 6 pin ISP connector or bare chips in the Zif socket.

Doc