# (Solved) Attiny85 SOIC-8 20U impossible to program

**URL:** <https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134>\
**Category:** Uploading\
**Created:** [October 4, 2023, 8:25pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134 "2023-10-04T20:25:13Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 4, 2023, 8:25pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/1 "2023-10-04T20:25:13Z")

</div>

Hello,

I have problem of programming **ATTINY85-20U SOIC-8**

I can do program without any problem **ATTINY85-20U DIP-8** but when i just change to SOIC-8 also **20U** , i get an error code:

```arduino
avrdude: Expected signature for ATtiny85 is 1E 93 0B
         Double check chip, or use -F to override this check.
Failed programming: uploading error: exit status 1

```

I tried to do it with two and it's the same problem.  
Why?

 ![IMG_4482](https://europe1.discourse-cdn.com/arduino/original/4X/d/8/3/d835d4d37caa5a894bd9a8b5d34bbe1ae01d1b13.jpeg)

 ![IMG_4481](https://europe1.discourse-cdn.com/arduino/original/4X/a/b/d/abdec750f9683eb72e7d8b5d63abbbff83ff7ebb.jpeg)  
 ![Capture d’écran 2023-10-04 à 23.02.33](https://europe1.discourse-cdn.com/arduino/original/4X/e/d/e/ede63399a39fce387852c1ff316a8dd58f612ecb.png)  
 ![Capture d’écran 2023-10-04 à 23.06.20](https://europe1.discourse-cdn.com/arduino/original/4X/c/d/4/cd432cb6cba33b0c4e7fb996ba0c8d392e627f02.png)

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [October 4, 2023, 9:01pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/2 "2023-10-04T21:01:27Z")

</div>

Most likely, bad or incorrect connections. Please post a close up, focused photo of the your programming setup, showing the problematic chip.

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 4, 2023, 9:25pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/3 "2023-10-04T21:25:55Z")

</div>

I beeped all pins with multimeter to see if there is some short cuts.  
And to see if all are connected between Arduino and adapter.  
It's all the same like for DIP-8.

Here is the pictures of adapter for SOIC-8 to DIP-8

 ![IMG_4485](https://europe1.discourse-cdn.com/arduino/original/4X/a/7/c/a7c0c17ff9c8c6401826ce537b23c8c1017a6b3a.jpeg)  
 ![IMG_4484](https://europe1.discourse-cdn.com/arduino/original/4X/a/e/0/ae02f8060ef1be4ec55f45fb8b94b3a02d787467.jpeg)  
 ![IMG_4483](https://europe1.discourse-cdn.com/arduino/original/4X/c/0/6/c06db59c927daf72424fbd6ab7627ca2058dfddd.jpeg)  
 ![IMG_4487](https://europe1.discourse-cdn.com/arduino/original/4X/5/2/f/52fc0d3afc988b1302c738284d6d68ae03facfa3.jpeg)  
 ![IMG_4488](https://europe1.discourse-cdn.com/arduino/original/4X/5/8/2/58208536731e89af5b805edd3d758ebf42c57248.jpeg)  
 ![IMG_4489](https://europe1.discourse-cdn.com/arduino/original/4X/3/5/9/359f594b334d398a62d9e8b2071a303b029f4d70.jpeg)  
 ![IMG_4490](https://europe1.discourse-cdn.com/arduino/original/4X/6/9/f/69f4181d6c9389d12c43e5f9d3c0cd65cadd7e7a.jpeg)  
 ![IMG_4491](https://europe1.discourse-cdn.com/arduino/original/4X/f/f/4/ff48bad1773f5dc91bceaab2034fdd58084e8ff5.jpeg)

---

<div class="post-metadata">

**Author:** ![hmeijdam](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hmeijdam/32/218564_2.png) [@hmeijdam](https://forum.arduino.cc/u/hmeijdam)\
**Post date:** [October 4, 2023, 9:48pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/4 "2023-10-04T21:48:03Z")

</div>

Did you buy them from a reputable source? I remember that I bought a few years back from Aliexpress or Ebay and got them with the reset disabled, so had to make a HV programmer on my Uno to get them back to working order.

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 4, 2023, 9:51pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/5 "2023-10-04T21:51:47Z")

</div>

It's Aliexpress Attiny's.  
How can i test to know if my "reset" are disabled ?

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [October 4, 2023, 10:33pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/6 "2023-10-04T22:33:46Z")

</div>

> [@kayumba77](#):
>
> Aliexpress Attiny's.

Who knows what might be in those SOIC packages?

Genuine ATTiny's cost a bit more from an authorized dealer, but they work.

---

<div class="post-metadata">

**Author:** ![LarryD](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/larryd/32/215550_2.png) [@LarryD](https://forum.arduino.cc/u/LarryD)\
**Post date:** [October 4, 2023, 11:01pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/7 "2023-10-04T23:01:19Z")

</div>

With power off, use a DMM to check **pin to wiring** continuity.

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 5, 2023, 12:32am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/8 "2023-10-05T00:32:33Z")

</div>

DMM ?  
What is that ?

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 5, 2023, 12:33am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/9 "2023-10-05T00:33:22Z")

</div>

I'm going to ask you to post the full verbose output from an upload attempt.

* * *

❗ This procedure is not intended to solve the problem. The purpose is to gather more information.

* * *

Please do this:

1. Select **File \> Preferences...** (or **Arduino IDE \> Settings...** for macOS users) from the Arduino IDE menus.  
The " **Preferences**" dialog will open.
2. Uncheck the box next to **Show verbose output during: `☑` compilation** in the " **Preferences**" dialog.
3. Check the box next to **Show verbose output during: ☐ upload**.
4. Click the " **OK**" button.
5. Attempt an "Upload Using Programmer", just as you did before.
6. Wait for the upload to fail.
7. You will see a " **Upload error: ...**" notification at the bottom right corner of the Arduino IDE window. Click the " **COPY ERROR MESSAGES**" button on that notification.
8. Open a forum reply here by clicking the " **Reply**" button.
9. Click the **`<CODE/>`** icon on the post composer toolbar.  
This will add the forum's code block markup ( **`````** ) to your reply to make sure the error messages are correctly formatted.  
 ![Code tags icon on toolbar](https://europe1.discourse-cdn.com/arduino/original/4X/f/3/4/f34b0ef2ecd107da4bf127b3c0bc1c28569e7fe0.png)
10. Press **Ctrl** + **V**.  
This will [paste](https://lifehacker.com/how-to-copy-cut-and-paste-for-beginners-5801525) the error output from the upload into the code block.
11. Move the cursor outside of the code tags before you add any additional text to your reply.
12. Click the " **Reply**" button to post the output.

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 5, 2023, 12:33am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/10 "2023-10-05T00:33:50Z")

</div>

> [@kayumba77](#):
>
> DMM ?  
> What is that ?

"Digital multimeter"

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 5, 2023, 12:37am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/11 "2023-10-05T00:37:56Z")

</div>

```arduino
In file included from /Users/kayumba/Documents/Arduino/libraries/FastLED/src/FastLED.h:75:0,
                 from /Users/kayumba/Downloads/gbc-rgb-led-2.0-main/source/GameboyLEDs/GameboyLEDs.ino:1:
/Users/kayumba/Documents/Arduino/libraries/FastLED/src/fastspi.h:157:23: note: #pragma message: No hardware SPI pins defined. All SPI access will default to bitbanged output
 # pragma message "No hardware SPI pins defined. All SPI access will default to bitbanged output"
                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sketch uses 8188 bytes (99%) of program storage space. Maximum is 8192 bytes.
Global variables use 305 bytes (59%) of dynamic memory, leaving 207 bytes for local variables. Maximum is 512 bytes.
"/Users/kayumba/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/Users/kayumba/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf" -v -V -pattiny85 -cstk500v1 -P/dev/cu.usbserial-1110 -b19200 "-Uflash:w:/private/var/folders/87/8v1dnm9n3rx2227m0mm_wj400000gn/T/arduino/sketches/0947090EED7773D4637C3BE8F530648A/GameboyLEDs.ino.hex:i"

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 "/Users/kayumba/Library/Arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/etc/avrdude.conf"
         User configuration file is "/Users/kayumba/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port : /dev/cu.usbserial-1110
         Using Programmer : stk500v1
         Overriding Baud Rate : 19200
         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
           flash 65 6 32 0 yes 8192 64 128 30000 30000 0xff 0xff
           signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
           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
           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.

Failed programming: uploading error: exit status 1

```

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 5, 2023, 12:58am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/12 "2023-10-05T00:58:41Z")

</div>

> [@kayumba77](#):
>
> ```plaintext
> avrdude: Device signature = 0x000000
> 
> ```

This is the information I was interested in. The non-verbose output only tells us that the read signature was not as expected. The verbose output tells us the actual value of the read signature.

This value has diagnostic significance. For example, if it read a valid signature of a different chip, we might conclude that you received a mislabeled chip. Or if it read a seemingly random signature value, we might conclude that the signature data was somehow corrupted (either on the chip or during the read).

But the 0x000000 has a different significance. This indicates that the programmer was not able to communicate with the chip at all. That supports the hypotheses already advanced in the prior discussion that either there is a problem in the connections between the programmer and the target, or else the target is configured in a way that prevents the communication with the programmer.

One possibility is that the fuses on the ATtiny85 have been configured to use an external clock source. A factory fresh chip is configured by default to use the internal RC oscillator, which means it can be programmed without the connection of an external clock source (e.g., a crystal oscillator or ceramic resonator). But if for some reason you received a chip on which someone had previously set the fuses for an external clock, then the chip doesn't run without such a clock source, which can cause this error. So it is worth connecting a clock if you have one on hand. It won't do any harm even if the fuses are set for the internal oscillator as expected.

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 5, 2023, 12:59am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/13 "2023-10-05T00:59:49Z")

</div>

Oh, ok.  
I think that what i already done.  
I checked every pins with "beep mode" to see if there is some wrong connection or "short cuts".  
Everything is same like with DIP-8.

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 5, 2023, 1:06am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/14 "2023-10-05T01:06:44Z")

</div>

Thank you for answer ptillisch.  
I will try to find one and to connect it like "external clock".  
Can you give me please a reference for that "ceramic resonator" ?  
And wiring diagram if you have.  
Thank you very much.

Are this one ok?

 ![CPhVg](https://europe1.discourse-cdn.com/arduino/original/4X/a/1/8/a18d8abcb51403e61c5b9369e4f5dfd227bb9882.png)

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 5, 2023, 2:30am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/15 "2023-10-05T02:30:49Z")

</div>

> [@kayumba77](#):
>
> I will try to find one and to connect it like "external clock".

It is only one possible cause of the error you got, so I can't make any promises that connecting a clock source will solve the problem. Those of us with a hoard of electronics components usually have various crystals and resonators readily on hand and so connecting one would not require any significant effort, but I know that not everyone has such things lying around.

I remember there is a variant of the "ArduinoISP" sketch that also outputs a clock signal that can be connected to the target for this purpose, but I don't know where that sketch can be obtained off hand.

> [@kayumba77](#):
>
> Can you give me please a reference for that "ceramic resonator" ?

The ceramic resonator is an alternative to a crystal oscillator. There is some general information about it here:

> **[Ceramic resonator](https://en.wikipedia.org/wiki/Ceramic_resonator)**
>
> A ceramic resonator is an electronic component consisting of a piece of a piezoelectric ceramic material with two or more metal electrodes attached. When connected in an electronic oscillator circuit, resonant mechanical vibrations in the device generate an oscillating signal of a specific frequency. Like the similar quartz crystal, they are used in oscillators for purposes such as generating the clock signal used to control timing in computers and other digital logic devices, or generating the ...

For a hobbyist, the primary property of interest of the ceramic resonator is that it doesn't require load capacitors like the crystal oscillator does, which makes it easier to use in a prototyping application.

For a manufacturer, the primary property of interest of the ceramic resonator is that it can reduce the cost of manufacturing the device as a replacement for the alternative of a crystal oscillator and load capacitors.

The ceramic resonator is inferior in accuracy compared to a crystal oscillator. However, for many applications the accuracy is still sufficient. In fact, you would likely find ceramic resonators in use as the clock source for the primary microcontroller on some of the microcontroller development boards you are using (though the UNO derivative board in the picture you shared actually does use a crystal on the ATmega328P as well as the CH340).

> [@kayumba77](#):
>
> Are this one ok?

No. You need to connect load capacitors to the crystal

Even though best practices would be to refer to the datasheet of the specific crystal in use and obtain the appropriate capacitance value, in practice you will be fine if you simply use the common value of 22 pF.

---

<div class="post-metadata">

**Author:** ![anon94801460](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@anon94801460](https://forum.arduino.cc/u/anon94801460)\
**Post date:** [October 5, 2023, 2:42am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/16 "2023-10-05T02:42:05Z")

</div>

You don't need a crystal, resonator or capacitors, if the clock fuse setting is the problem. Just about any oscillator will work as a clock or crystal, as long as you obey voltage levels (including an Arduino tone() or timer pin output). I've even used an audio oscillator to recover the settings on a AVR chip.

See this tutorial (scroll down for the details on connecting an external oscillator signal) [Gammon Forum : Electronics : Microprocessors : How to make an Arduino-compatible minimal board](https://www.gammon.com.au/breadboard)

---

<div class="post-metadata">

**Author:** ![kayumba77](https://avatars.discourse-cdn.com/v4/letter/k/d26b3c/32.png) [@kayumba77](https://forum.arduino.cc/u/kayumba77)\
**Post date:** [October 5, 2023, 8:58am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/17 "2023-10-05T08:58:45Z")

</div>

Problem should be somewhere else.  
I desolder one Attiny from Digispark board (like on picture), and tried to program it.  
No succes. I got the same error with _Device signature = 0x000000_  
Will try to check one more time all pin connections.

 ![Capture d’écran 2023-10-05 à 10.53.38](https://europe1.discourse-cdn.com/arduino/original/4X/a/c/4/ac4eeac2844849e4c9c78d9844becfd163c308e7.jpeg)

---

<div class="post-metadata">

**Author:** ![ptillisch](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@ptillisch](https://forum.arduino.cc/u/ptillisch)\
**Post date:** [October 5, 2023, 10:36am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/18 "2023-10-05T10:36:04Z")

</div>

Nice work on troubleshooting!

Make sure to check the connections all the way through to the UNO derivative board. The jumper wires can sometimes not have electrical continuity due to manufacturing defects or damage.

---

<div class="post-metadata">

**Author:** ![hmeijdam](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/hmeijdam/32/218564_2.png) [@hmeijdam](https://forum.arduino.cc/u/hmeijdam)\
**Post date:** [October 5, 2023, 11:14am UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/19 "2023-10-05T11:14:24Z")

</div>

ehh....isn't [this digispark board](https://www.kickstarter.com/projects/digistump/digispark-the-tiny-arduino-enabled-usb-dev-board) the board where you can use the reset pin as the sixth IO pin, since the board is programmed via a bootloader and therefore they can afford to disable the reset pin?

The Specs:  
..............  
6 I/O Pins (2 are used for USB only if your program actively communicates over USB, otherwise you can use all 6 even if you are programming via USB)  
.............

To your question about the HV programming  
[here is a description](https://www.electronics-lab.com/recover-bricked-attiny-using-arduino-as-high-voltage-programmer/) that describes a DIY version

I built one not as fancy as the one in the article, but it works, straight off an UNO, thanks to a tiny 5V \>\> 12V boost converter.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/6/5/2/6529eb5c271528276cd6221a6915cceed2ef86d9.jpeg)

---

<div class="post-metadata">

**Author:** ![Kayumba](https://avatars.discourse-cdn.com/v4/letter/k/b9e5f3/32.png) [@Kayumba](https://forum.arduino.cc/u/Kayumba)\
**Post date:** [October 12, 2023, 9:37pm UTC](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134/20 "2023-10-12T21:37:59Z")

</div>

Thank you.

Just to let you know...  
I done successful flashing of Attiny85 SOIC by using .HEX file and programmer "TL866".  
Anyway, I will build my own "HV Programmer" (thank's [hmeijdam](https://forum.arduino.cc/u/hmeijdam)) than I can see if the problem was that.

[Next page](https://forum.arduino.cc/t/solved-attiny85-soic-8-20u-impossible-to-program/1175134.md?page=2)
