# Struggling to program a ATtiny85

**URL:** <https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241>\
**Category:** 3rd Party Boards\
**Created:** [June 19, 2024, 2:44am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241 "2024-06-19T02:44:55Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kaaamg](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kaaamg/32/1080954_2.png) [@kaaamg](https://forum.arduino.cc/u/kaaamg)\
**Post date:** [June 19, 2024, 2:44am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/1 "2024-06-19T02:44:55Z")

</div>

Hello everyone,

I've been trying to program an ATtiny85 using an Arduino UNO as an ISP, but I've been running into some issues.

**Problem** : When trying to burn the bootloader, I get the following error:

```arduino
C:\Users\kamil\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\kamil\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -v -v -v -pattiny85 -cstk500v1 -PCOM5 -b19200 -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xe2: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:\Users\kamil\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port : COM5
         Using Programmer : stk500v1
         Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20] 
avrdude: Send: 0 [30] [20] 
avrdude: Send: 0 [30] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
         AVR Part : ATtiny85
         Chip Erase delay : 400000 us
         PAGEL : P00
         BS2 : P00
         RESET disposition : possible i/o
         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 12 4 0 no 512 4 0 4000 4500 0xff 0xff
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash 65 6 32 0 yes 8192 64 128 30000 30000 0xff 0xff
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

         Programmer Type : STK500
         Description : Atmel STK500 Version 1.x firmware
avrdude: Send: A [41] . [80] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [02] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [81] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [01] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [82] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [12] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [98] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard : Unknown
avrdude: Send: A [41] . [84] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [85] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [86] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [87] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [89] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
         Vtarget : 0.0 V
         Varef : 0.0 V
         Oscillator : Off
         SCK period : 0.1 us

avrdude: Send: A [41] . [81] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [01] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [82] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [12] 
avrdude: Recv: . [10] 
avrdude: Send: B [42] . [14] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [ff] . [ff] . [ff] . [ff] . [00] @ [40] . [02] . [00] . [00] . [00] [20] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
avrdude: PAGEL and BS2 signals not defined in the configuration file for part ATtiny85, using dummy values
avrdude: Send: E [45] . [05] . [04] . [d7] . [a0] . [01] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
avrdude: Send: P [50] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: V [56] 0 [30] . [00] . [00] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [ff] 
avrdude: Recv: . [10] 
avrdude: Send: V [56] 0 [30] . [00] . [01] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [ff] 
avrdude: Recv: . [10] 
################avrdude: Send: V [56] 0 [30] . [00] . [02] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [ff] 
avrdude: Recv: . [10] 
################################## | 100% 0.02s

avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)

Reading | avrdude: Send: V [56] 0 [30] . [00] . [00] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [ff] 
avrdude: Recv: . [10] 
avrdude: Send: V [56] 0 [30] . [00] . [01] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [ff] 
avrdude: Recv: . [10] 
################avrdude: Send: V [56] 0 [30] . [00] . [02] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
################################## | 100% 0.02s

avrdude: Device signature = 0xffff00
avrdude: Expected signature for ATtiny85 is 1E 93 0B
         Double check chip, or use -F to override this check.
avrdude: Send: Q [51] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 

avrdude done. Thank you.

Error while burning bootloader.

```

> **Summary**
>
> `This text will be hidden`

I've ensured the following:

- Im using the Attiny Core
- Reputable Attiny from Jlpcb
- Proper connections between the UNO and the ATtiny85.
- Added a capacitor between RESET and GND on the UNO.
- The ATtiny85 is powered by the 5V output from the UNO during programming (USB power supply only).

Images

Schematic

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/9/e/7/9e70d4da7d300216e7f5611cc04d6ec79ee0128f.png)

Board and Uno connections

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/3/d/c/3dcf6f982387d005d60c6c528ebb60197bfa6d70.jpeg)  
 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/c/d/b/cdb9554cfef445f358407af19a65dd72fcf0c387.jpeg)

I've followed standard guides and procedures for setting up the Arduino as an ISP, but still can't get past this issue. Any suggestions or insights would be greatly appreciated!

Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![Coding\_Badly](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Coding\_Badly](https://forum.arduino.cc/u/Coding_Badly)\
**Post date:** [June 19, 2024, 4:16am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/2 "2024-06-19T04:16:02Z")

</div>

> [@kaaamg](#):
>
> `avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)`

Wiring between the programmer (the Arduino) and the target (the ATtiny85).

---

<div class="post-metadata">

**Author:** ![Coding\_Badly](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Coding\_Badly](https://forum.arduino.cc/u/Coding_Badly)\
**Post date:** [June 19, 2024, 4:17am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/3 "2024-06-19T04:17:06Z")

</div>

Where is the wire between pin 10 on the Arduino and the RESET pin on the target? (I think pin 10 is the Slave Select.)

---

<div class="post-metadata">

**Author:** ![kaaamg](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kaaamg/32/1080954_2.png) [@kaaamg](https://forum.arduino.cc/u/kaaamg)\
**Post date:** [June 19, 2024, 4:41am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/4 "2024-06-19T04:41:39Z")

</div>

I changed the wire to pin 10 of the Arduino to the reset pin on the pcb and it gave me this error

```arduino
C:\Users\kamil\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\kamil\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -v -v -v -pattiny85 -cstk500v1 -PCOM5 -b19200 -e -Uefuse:w:0xff:m -Uhfuse:w:0xdf:m -Ulfuse:w:0xe2: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:\Users\kamil\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port : COM5
         Using Programmer : stk500v1
         Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20] 
avrdude: Send: 0 [30] [20] 
avrdude: Send: 0 [30] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
         AVR Part : ATtiny85
         Chip Erase delay : 400000 us
         PAGEL : P00
         BS2 : P00
         RESET disposition : possible i/o
         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 12 4 0 no 512 4 0 4000 4500 0xff 0xff
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash 65 6 32 0 yes 8192 64 128 30000 30000 0xff 0xff
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00
                                  Block Poll Page Polled
           Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00

         Programmer Type : STK500
         Description : Atmel STK500 Version 1.x firmware
avrdude: Send: A [41] . [80] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [02] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [81] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [01] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [82] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [12] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [98] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
         Hardware Version: 2
         Firmware Version: 1.18
         Topcard : Unknown
avrdude: Send: A [41] . [84] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [85] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [86] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [87] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [89] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
         Vtarget : 0.0 V
         Varef : 0.0 V
         Oscillator : Off
         SCK period : 0.1 us

avrdude: Send: A [41] . [81] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [01] 
avrdude: Recv: . [10] 
avrdude: Send: A [41] . [82] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [12] 
avrdude: Recv: . [10] 
avrdude: Send: B [42] . [14] . [00] . [00] . [01] . [01] . [01] . [01] . [03] . [ff] . [ff] . [ff] . [ff] . [00] @ [40] . [02] . [00] . [00] . [00] [20] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
avrdude: PAGEL and BS2 signals not defined in the configuration file for part ATtiny85, using dummy values
avrdude: Send: E [45] . [05] . [04] . [d7] . [a0] . [01] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
avrdude: Send: P [50] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 
avrdude: AVR device initialized and ready to accept instructions

Reading | avrdude: Send: V [56] 0 [30] . [00] . [00] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: V [56] 0 [30] . [00] . [01] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
################avrdude: Send: V [56] 0 [30] . [00] . [02] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
################################## | 100% 0.03s

avrdude: Device signature = 0x000000 (retrying)

Reading | avrdude: Send: V [56] 0 [30] . [00] . [00] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
avrdude: Send: V [56] 0 [30] . [00] . [01] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [ff] 
avrdude: Recv: . [10] 
################avrdude: Send: V [56] 0 [30] . [00] . [02] . [00] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
################################## | 100% 0.02s

avrdude: Device signature = 0x00ff00
avrdude: Expected signature for ATtiny85 is 1E 93 0B
         Double check chip, or use -F to override this check.
avrdude: Send: Q [51] [20] 
avrdude: Recv: . [14] 
avrdude: Recv: . [10] 

avrdude done. Thank you.

Error while burning bootloader.

```

---

<div class="post-metadata">

**Author:** ![Coding\_Badly](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Coding\_Badly](https://forum.arduino.cc/u/Coding_Badly)\
**Post date:** [June 19, 2024, 5:50am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/5 "2024-06-19T05:50:26Z")

</div>

> [@kaaamg](#):
>
> `avrdude: Device signature = 0x000000 (retrying)`

The problem is still very likely a wiring mistake.

---

<div class="post-metadata">

**Author:** ![PaulRB](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/paulrb/32/216330_2.png) [@PaulRB](https://forum.arduino.cc/u/PaulRB)\
**Post date:** [June 19, 2024, 6:04am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/6 "2024-06-19T06:04:29Z")

</div>

> [@kaaamg](#):
>
> `avrdude: Device signature = 0xffff00`

> [@kaaamg](#):
>
> `avrdude: Device signature = 0xffffff (probably .avr8x_mega) (retrying)`

> [@kaaamg](#):
>
> `avrdude: Device signature = 0x000000 (retrying)`

> [@kaaamg](#):
>
> `avrdude: Device signature = 0x00ff00`

AVRdude, a utility which communicates with AVR chips during programming, is trying to read the signature of the ATtiny85 to check that it really is an ATtiny85. Each model of chip has a unique signature. But each time it does that, it's getting a different result. This is why @Coding_Badly says it is probably a wiring error. It could also be a bad connection. Test each of your Dupont cables, they can be unreliable.

---

<div class="post-metadata">

**Author:** ![GolamMostafa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/golammostafa/32/239011_2.png) [@GolamMostafa](https://forum.arduino.cc/u/GolamMostafa)\
**Post date:** [June 19, 2024, 10:37am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/7 "2024-06-19T10:37:43Z")

</div>

Please, post a clear picture of the ATtiny85 Breakout Board.

Does it contain a MicroUSb Port? If yes, what is the purpose of this Port?

---

<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:** [December 16, 2024, 10:37am UTC](https://forum.arduino.cc/t/struggling-to-program-a-attiny85/1273241/8 "2024-12-16T10:37:45Z")

</div>

Closed on December 16, 2024, 10:37am UTC

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