avrdude: Expected signature for ATmega328P is 1E 95 0F (bootloader issue)

im trying to burn the bootloader onto a atmega328p-aurct-nd on a custom pcb, and this error keeps happening. My connections are correct, as i burned the bootloader onto two separate boards just to make sure, and those worked fine.

Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

avrdude: Expected signature for ATmega328P is 1E 95 0F

         Double check chip, or use -F to override this check.

Error while burning bootloader.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

i am aware of two other threads, arduino as isp bricks chips?? - Microcontrollers - Arduino Forum, https://forum.arduino.cc/index.php/topic,68889.0.html, but neither of those seemed to help me.

any ideas what my issue might be (would this be a sign of bricked chip, bad circuit)? also how do i do the -f command? thanks.

super7800:
also how do i do the -f command?

It's extremely unlikely that -f would help. An incorrect signature is almost always an indication of a complete inability to communicate with the microcontroller, which couldn't be fixed by simply ignoring the signature mismatch. It would only be useful if the chip's signature was somehow corrupted, which I have seen maybe two reports of out of hundreds of reports of this error that were caused by other problems.

Please do this:

  • (In the Arduino IDE) File > Preferences
  • Check the checkbox next to "Show verbose output during: upload".
  • Click the "OK" button.
  • Tools > Burn Bootloader
  • After the Burn Bootloader process fails, you'll see a button on the right side of the orange bar: "Copy error messages". Click that button.
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the Burn Bootloader output between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.
Arduino: 1.8.13 (Windows 10), Board: "Arduino Uno"

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



Error while burning bootloader.

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



avrdude: Device signature = 0xff00ff

avrdude: Expected signature for ATmega328P is 1E 95 0F

         Double check chip, 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.

is this what you needed? Thanks.

also here is my schematic for the digital section of my circuit. its fairly basic, and i dont see any issues but figured i should post it anyways incase my issue is a hardware one. thanks.

When I have had problems in the past putting bootloaders on 328 chips of various kinds I have used the Minicore board definitions which allows for different chip variants to be selected. See How to load Arduino bootloader into ATMEL microcontroller ATMEGA328P

super7800:
and i dont see any issues but figured i should post it anyways incase my issue is a hardware one

0.1uF capacitors on the Crystal ?

Normally one would fit around 22pF.

@UKHeliBob thanks, that will come in handy for the future but did'nt work for me. i will play around with it some more though.

@srnet ah i see, thats me being stupid again lol. how could i remedy the issue? i dont think i have any 22pf 0805 caps around. Is it a big enoughph issue for the microcontroller to not even work right? thanks.

avrdude: Device signature = 0xff00ff
avrdude: Expected signature for ATmega328P is 1E 95 0F

Usually a "Device signature = 0x000000" or "Device signature = 0xffffff" means a wiring problem or the target system's clock isn't running. I don't know what "0xff00ff" might mean.

Is there a crystal/resonator on your custom board? If not, and the chip fuses are set to expect one (as they would be on an Ardiuino), you will have to inject a clock to do serial programming.

If this is a new chip, wouldn't it come from the factory fused to use the 8MHz internal oscillator? If so, it seems it ought to respond in some way even if the crystal isn't working. Have you tried selecting the Board "Atmega328 on a breadboard (8Mhz internal clock)" in the IDE? I don't remember for sure, but I may have had to download that from somewhere. If it's already fused to use the crystal, then maybe it already has a bootloader, and you just need to replace the caps with the right ones.