Problem Uploading Bootloader to Bare Atmega 328P-PU Using Uno as ISP

Hi everybody,

I've hit an issue that I've seen around on these forums, but without a solution. So, here I am.

I'm using my Arduino Uno with the stock ArduinoISP program to bootload my bare Atmega 328-PU. The IDE version I'm using is 1.8.2.

I've checked my connections several times, tried using the internal 8MHz clock and the 16MHz clock using Arduino's tutorial (https://www.arduino.cc/en/Tutorial/ArduinoToBreadboard), and set the programmer to "Arduino as ISP".

I've noticed that most of the examples where people have gotten this to work have been using Arduino 1.0.5 instead of 1.8.2. I'm thinking this could be a reason why there's a problem, and why the connections on the tutorial could be outdated.

Any help is greatly appreciated!

Thanks.

Here's the error message that I've gotten.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM1 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xE2: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 Wunsch

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

Using Port : COM1
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 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: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0xffffff (probably .reduced_core_tiny) (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .reduced_core_tiny) (retrying)

Reading | ################################################## | 100% 0.03s

avrdude: Device signature = 0xffffff (probably .reduced_core_tiny)
avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
Error while burning bootloader.
this check.

avrdude done. Thank you.

I have used that tutorial to upload the bootloader to Atmega 328s running with the 8Mhz internal clock and using IDE 1.6.3.

One workaround might be to install an older version of the IDE. There is no problem having several versions on the same PC. The IDE is just a Java program.

...R

Hey thanks for the reply.

I actually got it to work thank god.
I used Atmel Studio 7 and a Pololu PGM03A ISP, roughly following these instructions after getting the Pololu's drivers installed:

http://startingelectronics.org/tutorials/arduino/arduino-uno-burning-bootloader-avr-studio/

After that, I loaded the newly programmed Atmega328p into my Arduino Uno, and it was blinkin its LED.

Thanks!