Arduino Bootloader problem.

Hello All,

My Self Suresh kumar.

HW And SW versions

Arduino UNO R3 (ATmega328P-PU) (Original) (DIP)
Arduino 1.6.13

On Bread Board

Atmel Brand new chips

ATmega328 PU(DIP)
and
ATmega328 AU(TQFP)

1.Upload the arduino ISP from example into UNO.
2.Connect as per the arduino site for bootloading circuit(minimum)(supply, clock,22pf,10 for reset) Arduino bread board.
3.Double check the Board and Port.
4.Change Programmer Arduino as ISP.
5.Brun Bootloader.

I got Error Like this.

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

I was tried different version 1.0.1, 1.6.6, 1.6.7, 1.6.8, 1.6.11, 1.6.12, and now 1.6.13 and study lot. changing the boards.txt and avrdude.conf(changing the 0x0F 0x14).

Please help me. Because this is the main problem lot of developers or beginners facing right this time.
I was attached a image file. BreadboardAVR.png
Please find for cuicuit.

Thank you.

BreadboardAVR.png

SureshKumar2610: Hello All,

My Self Suresh kumar.

HW And SW versions

Arduino UNO R3 (ATmega328P-PU) (Original) (DIP) Arduino 1.6.13

On Bread Board

Atmel Brand new chips

ATmega328 PU(DIP) and ATmega328 AU(TQFP)

1.Upload the arduino ISP from example into UNO. 2.Connect as per the arduino site for bootloading circuit(minimum)(supply, clock,22pf,10 for reset) Arduino bread board. 3.Double check the Board and Port. 4.Change Programmer Arduino as ISP. 5.Brun Bootloader.

I got Error Like this.

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

I was tried different version 1.0.1, 1.6.6, 1.6.7, 1.6.8, 1.6.11, 1.6.12, and now 1.6.13 and study lot. changing the boards.txt and avrdude.conf(changing the 0x0F 0x14).

Please help me. Because this is the main problem lot of developers or beginners facing right this time. I was attached a image file. BreadboardAVR.png Please find for cuicuit.

Thank you.

I have found that breadboarded AVR devices either program flakey or not at all if the power supply is not properly bypassed.

I suggest trying this: Place a 0.1 uF or 1.0 uF ceramic capacitor across the VCC and GND leads on the breadboard. ALSO add about a 100 uF aluminum electrolytic capacitor across the VCC and GND leads.

For the 100 uF cap, be sure you get the polarity right (plus to VCC, minus to GND). The ceramic cap doesn't matter for polarization.

Hope this helps (and hope it works!) :)

I have found that breadboarded AVR devices either program flakey or not at all if the power supply is not properly bypassed.

I suggest trying this: Place a 0.1 uF or 1.0 uF ceramic capacitor across the VCC and GND leads on the breadboard. ALSO add about a 100 uF aluminum electrolytic capacitor across the VCC and GND leads.

For the 100 uF cap, be sure you get the polarity right (plus to VCC, minus to GND). The ceramic cap doesn't matter for polarization.

Hope this helps (and hope it works!)

I was tried. But not working. 0.1uf capacitor Ceramic, and 100uf electrolytic also. I got same error

SureshKumar2610: I was tried. But not working. 0.1uf capacitor Ceramic, and 100uf electrolytic also. I got same error

Oh well.... the image you provided "looks right", but there's no way to compare what your board is actually wired like.

Do you have an oscilloscope? Can you tell if the oscillator is running? You should see about a 1 volt P-P sine wave at 16 mhz on either pin (in low power crystal mode) and about 3.5v P-P in high power crystal mode (both centered around 1/2 VCC).

Did you check key voltages? Reset pin high, both VCC high, both GND low, AVCC and AREF either at VCC or open?

Hi, Can you post a picture of your setup, not a fritzy, so we can see your layout.

Thanks... Tom... :)

Krupski: Do you have an oscilloscope? Can you tell if the oscillator is running? ....

I think, most of Arduino users have no oscilloscope. There is simple trick to detect if the oscillator is running. With the DMM (multimeter - any cheap) to measure DC voltage on XTAL1 pin against GND. It should be near to half of VCC if the oscillator is running properly. Clock signal is square, duty cycle, 50/50, with top at VCC (5V or 3.3V) and bottom at 0, so the average value of VCC and 0 should be measured by DMM.

Please find the attachments. AREF open need to connect to VCC ?.
Avcc tied to VCC
Both vcc tied and 5volt connect arduino
Both gnd tied and connect with arduino
reset pin goes to 10 pin of arduino. and no 10k pullup tied to vcc. need a 10k pullup ?.

these all are done erlier. I was fighting with this bootloader last 3 days.

Yes I dont have oscillscope.

I checked using cheap multi meter. one pin gnd and one is crystal leg. I got 0.75 volt

reset pin goes to 10 pin of arduino. and no 10k pullup tied to vcc. need a 10k pullup ?.

Yes, 10k pull-up is needed.

AREF open need to connect to VCC ?

No! You can connect it via 100nF capacitor to GND for decoupling but it is not needed for this use. Let it not connected.

10k added But same error.

my UNO have Atmega328P-PU but my bread board atmel Is ATmega328PU only Opti bootl problem.

328 differs from 328P in signature. Could you show verbose output? Switch it on in preferences.

D:\arduino-1.6.13\hardware\tools\avr/bin/avrdude -CD:\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM6 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM6
         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.

Here it is the the output verbose Error while burning bootloader.

(deleted)

I am using one half only for my circuit in my bread board.

SureshKumar2610:
I am using one half only for my circuit in my bread board.

But this pic shows you using both halves.
links.jpg
See if you gnds and 5V are continuous, check continuity where black lines drawn.
Tom… :slight_smile:
0.75V probably means your oscillator is not running.

Again I am setup the same on my bread board

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

D:\arduino-1.6.13\hardware\tools\avr/bin/avrdude -CD:\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM6 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m 

avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "D:\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf"

         Using Port                    : COM6
         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.03s

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.

Again I rechecked my bread board circuit. I got 4.56 volt two sides.

5V to AVCC,VCC GND to GND two sides AREF open 10 ----1-----10k pull up required ? 11-----17 12-----18 13-----19

9,10 crystal and 22pf 2 capacitors.

SureshKumar2610: ``` Arduino: 1.6.13 (Windows 7), Board: "Arduino/Genuino Uno"

D:\arduino-1.6.13\hardware\tools\avr/bin/avrdude -CD:\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -cstk500v1 -PCOM6 -b19200 -e -Ulock:w:0x3F:m -Uefuse:w:0x05:m -Uhfuse:w:0xDE:m -Ulfuse:w:0xFF:m

avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/         Copyright (c) 2007-2014 Joerg Wunsch

        System wide configuration file is "D:\arduino-1.6.13\hardware\tools\avr/etc/avrdude.conf"

        Using Port                    : COM6         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.03s

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.




Again I rechecked my bread board circuit. I got 4.56 volt two sides.

5V to AVCC,VCC
GND to GND two sides
AREF open
10 ----1-----10k pull up required ?
11-----17
12-----18
13-----19


9,10 crystal and 22pf 2 capacitors.

Do not cross-post. Do not hijack. Offending post removed.

Your wiring is wrong because of reading zeroes. It means that the target MCU does not responding at all.

I checked using cheap multi meter. one pin gnd and one is crystal leg. I got 0.75 volt

This is not good. See the post #5 and 14. Again, 10k is needed. Another thing you can test with DMM is reset signal at the start of uploading. Pulse is short about 200ms but it should be visible as short voltage fall on reset pin from stable 5V. Back to the oscillator circuit. There is possibility that something is wrong. You can disconnect caps and xtal, and use clock signal from UNO pin 9 to ATmega's XTAL1 pin 9, but you have to modify ISP sketch. For this functionality read this thread: http://forum.arduino.cc/index.php?topic=442939.msg3050785#msg3050785, post #5.