ATmega328p Breadboard 8mhz Bootloader Not Working

Hi guys! I am currently trying to make a custom PCB board using an ATmega328p and I needed to burn the breadboard 8mhz internal clock bootloader, but I keep getting an error message. I followed the steps of this Arduino tutorial but my board still didn't work.

I kept getting this error message:
Arduino: 1.8.13 (Windows 10), Board: "ATmega328 on a breadboard (8 MHz internal clock)"

C:\Users\riley\Downloads\arduino-1.8.13-windows\arduino-1.8.13\hardware\tools\avr/bin/avrdude -CC:\Users\riley\Downloads\arduino-1.8.13-windows\arduino-1.8.13\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM3 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDA:m -Ulfuse:w:0xE2:m

avrdude: Version 6.3-20190619

Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is "C:\Users\riley\Downloads\arduino-1.8.13-windows\arduino-1.8.13\hardware\tools\avr/etc/avrdude.conf"

Using Port : COM3

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.02s

avrdude: Device signature = 0x000000 (retrying)

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

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.

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.

Thanks for any help!!

Perhaps allowing us to see your schematic would help.

I think the problem is, the atmega328p is configured to use the external oscillator and when you power it without external oscillator the mcu doesn't have any clock to function, so gives you no signature. To do it properly you should add the external oscillator, so the mcu has some clock then try to bootload 8MHz bootloader and then remove the external oscillator, now it will run using the internal oscillator. Everyone at first looking the tutorial gets confused. I think the atmega328p may be from a uno board or the vendor set it to use the external oscillator

Thanks, Akash

Thanks! That sounds right. Is there a way to burn a bootloader with 2 Arduino boards so I don't have to buy an external oscillator? Thanks again!

yes of course thats the best way, I didnt mention it because I am not sure if you have two board :). use one as the isp and connect the icsp of two arduinos together excluding the reset. the reset should be connected from the pin 10 of the arduino as isp to the reset of the icsp of other board, all other connection is made just by connecting the both icsp together. This is the easiest way in fact, I too do it like this :). Then remove the mcu now its programmed to use the internal oscillator

Thanks, Akash

A brand new virgin 328p is factory configured to run from the 8MHz internal clock source. If it won't program, then that indicates a problem with your hardware.

I was able to burn the bootloader using 2 Arduinos! Thank you so much!
Cheers!

Cessna172:
I was able to burn the bootloader using 2 Arduinos! Thank you so much!
Cheers!

glad to hear the good news, keep posting :slight_smile: :slight_smile: