This might be redundant but I need your help. I am a newbie and I have repeatedly failed in uploading the bootloader into my Atmega328p. I used my Arduino Mega 2560 and used a blank chip of Atmega328p. Here is the error message with the verbose option in the preferences on:
Arduino: 1.8.5 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328P (5V, 16 MHz)"
C:\Program Files\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM7 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xFF:m
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg WunschSystem wide configuration file is "C:\Program Files\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM7
Using Programmer : stk500v1
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 0x00Programmer 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 usavrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000 (retrying)
Reading | ################################################## | 100% 0.02s
avrdude: Device signature = 0x000000 (retrying)
Error while burning bootloader.
Reading | ################################################## | 100% 0.02savrdude: 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.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Here are the things I have tried:
- Connecting the pins from Arduino Mega 2560 to Atmega 328p with the pinouts: 51 to 17, 50 to 18, 52 to 19, 53 to 1. Of course with the crystal oscillator, capacitor, and the source (VCC and GND with AVCC, Aref, AGND)
- With the pins connected as I indicated, I removed the pins and the error message is still the same
- Of course I tried experimenting with removing the capacitor in the reset pin on the arduino mega to remove auto reset, using values 100uF, 100nF, 10nF
- And before getting this error I tried to upload a blinking sketch into my Arduino Mega and it worked properly so I doubt my Mega is broken.
Possible situations that causes the error that I think:
- The Arduino Mega chip can't read the Atmega328p at all (Thats why connected pins or not same error)
- Is using Arduino Mega these days to bootload an Atmega328p chip still possible?
- I used the built-in sketch of the Arduino ISP, so I thought is there another sketch solely for using Arduino Mega as the Arduino ISP for Atmega328p?
- Might just be, but the blank Atmega328p I bought might be broken? (Hope not)
Please help me guys... I don't have anymore cash to spend on this project.. What should I do?