Burning bootloader onto ATMEGA1284P: Invalid device signature.

Hello Arduino-fellows,

I am trying to burn bootloader onto a atmega1284p and followed this tutorial:
http://www.technoblogy.com/show?19OV#bootloader
I am using the board files of Christinsen:

Please have a look at the attached images for the connections. I have checked those multiple times but I am still getting following error:

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

Error while burning bootloader.

I have also loaded the ArduinoISP to the Arduino Uno, which I am using as a programmer and then switched to Arduino as ISP as Programmer.

Thank you for your help!

I still have not solved it. Do you think it is a wiring problem, which I can hardly believe after checking many times or shall I better use another bootloader?

  1. MCU circuit is missing on the picture.
  2. Send your complete log include the command.

Here is a picture:

BTW: More detailed log can be switched on in preferences.
It can be wiring problem. However, there is also frequent issue with programmer type and in this case the 10uF capacitor between RESET and GND on programmer uno will help.

Budvar10:
BTW: More detailed log can be switched on in preferences.
It can be wiring problem. However, there is also frequent issue with programmer type and in this case the 10uF capacitor between RESET and GND on programmer uno will help.

Try, apologies! I haven't turned the verbose output on since my new installation.
I receive the following error:
I will now also try the capacitor, isn't 10µF a bit high?

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\bobin\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATmega1284P
         Chip Erase delay              : 55000 us
         PAGEL                         : PD7
         BS2                           : PA0
         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    10   128    0 no       4096    8      0  9000  9000 0xff 0xff
           flash         65    10   256    0 yes    131072  256    512  4500  4500 0xff 0xff
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           calibration    0     0     0    0 no          1    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)

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.

Error while burning bootloader.

You definitely need not the capacitor (Using Programmer: stk500v1).
It could more in your wiring. Show your setup to us. Do you have minimal circuit for 1284P? Oscillator, power with decoupling and reset.

Budvar10:
You definitely need not the capacitor (Using Programmer: stk500v1).
It could more in your wiring. Show your setup to us. Do you have minimal circuit for 1284P? Oscillator, power with decoupling and reset.

Thank you a lot. I have managed to burn bootloader once, then tried to upload a sketch using an FTDI converter (not the Arduino UNO anymore). I could not upload the sketch and I could also not burn bootloader afterwards anymore.

I have uploaded the images for the circuit here:

As well as in the attached .pdf

Gescannt_20191017-1431.pdf (1.05 MB)

Ok, pictures are bit better. Your circuit is not absolutely clear, though.
In situation when it is not working correctly, it is better to follow all rules for minimal circuit.

  1. Power: decoupling capacitors .1uF, one for each power pin as close as possible. All VCC and GND must be connected (looks like they are).
  2. Clock source: (there is - hopefully it is working) Arduino requires external because its setting (for beginning at least).
  3. RESET: Pull up 10kOhm (missing) and it is good to use .1uF separation capacitor for the reset signal, because sometimes pulse can prolong the reset state of the target which miss the start of communication.
    There is plenty schematics on the forum or internet, even they are for different type of ATmega, they can be used for each one.

About your log from post #4:

  1. It is good to grab it include the command with avrdude...
  2. Complete zero response says that there is no connection to the target so check your wiring again.
  3. Sometimes it is good to see byte transfer - do a more detailed log. If it is not possible from IDE, use avrdude command from the log directly in CMD with -vvvv. For circuit testing, I would recommend to go from CMD without -U parameter (no writes, just read).

Go ahead.

Thank you budvar for your help! It works now, hard to believe but there was a connection problem with the breadboard :)....

I'm glad it works. :slight_smile:
Have a great time with 1284P.