# ATMEGA1284P Bootloading Problems - device signature error

**URL:** <https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848>\
**Category:** Uploading\
**Created:** [March 19, 2023, 7:40am UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848 "2023-03-19T07:40:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kamapaul96](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kamapaul96/32/928691_2.png) [@kamapaul96](https://forum.arduino.cc/u/kamapaul96)\
**Post date:** [March 19, 2023, 7:40am UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/1 "2023-03-19T07:40:56Z")

</div>

Hello everyone,  
I have been trying to flash the bootloader onto my atmega1284p board in circuit and I have run into an issue that I cant seem to solve. Using Arduino ISP as programmer, I have mapped my pins correctly onto the target board (SCK to SCK, MISO to MISO, MOSI to MOSI, RESET to pin 10 of Arduino Uno).  
I am using the target at 3.3V and a crystal of 7.37MHz.  
The following is my error message:

```cpp

avrdude: Version 7.1-arduino.1
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is C:\Users\kamau\AppData\Local\Arduino15\packages\MightyCore\hardware\avr\2.2.1\avrdude.conf

         Using Port : COM6
         Using Programmer : stk500v1
         Overriding Baud Rate : 19200
         AVR Part : ATmega1284P
         Chip Erase delay : 55000 us
         PAGEL : PD7
         BS2 : PA0
         RESET disposition : possible i/o
         RETRY pulse : SCK
         Serial program mode : yes
         Parallel program mode : yes
         Timeout : 200
         StabDelay : 100
         CmdexeDelay : 25
         SyncLoops : 32
         PollIndex : 3
         PollValue : 0x53
         Memory Detail :

                                           Block Poll Page Polled
           Memory Type Alias 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
           lfuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
           hfuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
           efuse 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
           lock 0 0 0 0 no 1 1 0 9000 9000 0x00 0x00
           signature 0 0 0 0 no 3 1 0 0 0 0x00 0x00
           calibration 0 0 0 0 no 1 1 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
avrdude: device signature = 0x000000 (retrying)
avrdude: device signature = 0x000000 (retrying)
avrdude: device signature = 0x000000
avrdude main() error: Yikes! Invalid device signature.
avrdude main() error: expected signature for ATmega1284P is FF FF FF
        Double check connections and try again, or use -F to override
        this check.

avrdude done. Thank you.

Failed chip erase: uploading error: exit status 1

```

If someone has ran into a similar issue when bootloading their target, can they kindly share insight into how they solved this issue.

---

<div class="post-metadata">

**Author:** ![markd833](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/markd833/32/1186928_2.png) [@markd833](https://forum.arduino.cc/u/markd833)\
**Post date:** [March 19, 2023, 8:04am UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/2 "2023-03-19T08:04:57Z")

</div>

> [@kamapaul96](#):
>
> atmega1284p board in circuit and I

Does this circuit use the SPI bus as well?

> [@kamapaul96](#):
>
> `avrdude main() error: expected signature for ATmega1284P is FF FF FF`

I've not used a 1284, but that expected signature looks suspicious to me. Is the 1284 supported?

---

<div class="post-metadata">

**Author:** ![kamapaul96](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kamapaul96/32/928691_2.png) [@kamapaul96](https://forum.arduino.cc/u/kamapaul96)\
**Post date:** [March 19, 2023, 10:22am UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/3 "2023-03-19T10:22:10Z")

</div>

Hello,  
Thanks for the reply.

The original device signature as per the config file is  
0x1E 0x97 0x05

What you're seeing there was me attempting to edit the config file to have the signature match what the compiler is reading from the device.  
The efforts were futile.

---

<div class="post-metadata">

**Author:** ![kamapaul96](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kamapaul96/32/928691_2.png) [@kamapaul96](https://forum.arduino.cc/u/kamapaul96)\
**Post date:** [March 19, 2023, 10:24am UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/5 "2023-03-19T10:24:43Z")

</div>

The circuit doesn't use the spi bus. It is only set up for bootloading and only connected to the bus on the controller.

---

<div class="post-metadata">

**Author:** ![markd833](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/markd833/32/1186928_2.png) [@markd833](https://forum.arduino.cc/u/markd833)\
**Post date:** [March 19, 2023, 2:20pm UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/6 "2023-03-19T14:20:14Z")

</div>

> [@kamapaul96](#):
>
> What you're seeing there was me attempting to edit the config file to have the signature match what the compiler is reading from the device.

I would change that back to the original values.

Do you have the capacitor on the reset line?

This discussion might help:

> [@burn bootloader to mega 2560 with and UNO ISP (SOLVED)](https://forum.arduino.cc/t/burn-bootloader-to-mega-2560-with-and-uno-isp-solved/111267):
>
> Hi, im going to install a bootloader to an arduino mega 2560 with arduino UNO as ISP. I follow this steps: [http://arduino.cc/en/Tutorial/ArduinoISP](http://arduino.cc/en/Tutorial/ArduinoISP) and doesnt work for me but i see in the sketch this lines: // pin name: not-mega: mega(1280 and 2560) // slave reset: 10: 53 // MOSI: 11: 51 // MISO: 12: 50 // SCK: 13: 52 and now i want to know, which of the next images is right wired? 1- 2- Thanks

---

<div class="post-metadata">

**Author:** ![Budvar10](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/budvar10/32/215868_2.png) [@Budvar10](https://forum.arduino.cc/u/Budvar10)\
**Post date:** [March 20, 2023, 4:38pm UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/7 "2023-03-20T16:38:36Z")

</div>

> [@kamapaul96](#):
>
> I am using the target at 3.3V ...

How it so? Uno operates under 5V. Did you use a level shifter?  
You can damage the chip connecting 5V logic to 3V3.  
See the datasheet for allowed voltage on IO pins.

Also, this "expected signature for ATmega1284P is FF FF FF" looks suspicious. There should be valid value for ATmega1284P as it is 0x1E9705. Anyhow, you have to solve the problem with the different voltages first.  
Datasheet:  
Voltage on any pin except RESET  
with respect to ground ............................... -0.5V to VCC + 0.5V  
Voltage on RESET with respect to ground ......-0.5V to +13.0V

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [September 16, 2023, 4:39pm UTC](https://forum.arduino.cc/t/atmega1284p-bootloading-problems-device-signature-error/1103848/8 "2023-09-16T16:39:20Z")

</div>

Closed on September 16, 2023, 4:39pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
