Problem using "From Arduino to Microcontroller on a breadboard" scheme

Hello,

I am burning a downloader with errors.

I follow the instructions in this forum, article: "From Arduino to Microcontroller on a breadboard"

Wires and continuity double checked
Crystal is new and a second new also tested
4 capacitors tested

My IDE is 1.8.8
Arduino UNO is used as programmer

Two new original ATMEL MCU tested

Some times, randomly, I get

avrdude: Expected signature for ATmega328P is 1E 95 0F
Double check chip, or use -F to override this check.
Error while burning bootloader.

Most of the times I get

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

What am I doing wrong ?
Any reading to implement -F option ?

Thanks for your help,
Have a nice day

Please do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Tools > Burn Bootloader
  • After the process fails you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the forum toolbar).

Can you also please post a link to the instruction article you’re using? That topic has been covered more than once here.

Hello,

This is the log obtained:

Arduino: 1.8.8 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM9 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.3-20171130
         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                    : COM9
         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.01s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x000000 (retrying)

Error while burning bootloader.
Reading | ################################################## | 100% 0.01s

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.

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

This is the tutorial I used:

Thank you very much for your time !
Horacio

avrdude: Device signature = 0x000000 is usually an indication of bad wiring. Please check that all your wires are correct.

Breadboards can sometimes get bad connections that are improved by wiggling things around.

Jumper wires may get internal breaks. You can check their continuity using a multimeter.

Note that the breadboard configuration shown in that tutorial is not ideal. You should have a 0.1 uF decoupling capacitor on both of the power lines of the chip, as close as possible to the chip. The crystal and load capacitors should also be as close to the chip as possible.

This is how the decoupling capacitors should look:

This is how the crystal should look:

(but leave the decoupling capacitors where they were in the first picture.

Those pictures come from this tutorial:
http://www.gammon.com.au/breadboard

Thanks Pert for your help,

I did all wiring and capacitors check, and changed crystal.
But... after working hours, I changed the microcontroller itself and that was the problem.
It was an original Atmel.

Have a nice day !
Horacio

I'm glad to hear you found a solution. Thanks for taking the time to provide an update. Enjoy!
Per

Thanks to you !
Horacio