unable to upload program to Attiny85 using Arduino as ISP

My problem is the same as this topic unable to upload program to Attiny85 using Arduino as ISP - Programming Questions - Arduino Forum and there is no solution posted there.

Generally I am following this guide: http://www.instructables.com/id/Program-an-ATtiny-with-Arduino/

I have an etherten - I know it works I can upload blink to it successfully.

I have uploaded ArduinoISP no errors

I choose micronucleus bootloader

Switch board to attiny25/45/85, processor attiny 85, clock internal 16mhz (5V) - FWIW I have an attiny13a chip, not a board

Compiling without uploading gives this

Sketch uses 680 bytes (33%) of program storage space. Maximum is 2,048 bytes.
Global variables use 9 bytes (7%) of dynamic memory, leaving 119 bytes for local variables. Maximum is 128 bytes.
Error while uploading: missing 'program.params.quiet' configuration parameter
In file included from C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.16\cores\arduino/Stream.h:26:0,

                 from C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.16\cores\arduino/HardwareSerial.h:29,

                 from C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.16\cores\arduino/Arduino.h:232,

                 from sketch\Blink.ino.cpp:1:

C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.16\cores\arduino/Print.h:32:0: warning: "BIN" redefined

 #define BIN 2

 ^

In file included from c:\users\steve\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\avr\include\avr\iotn25.h:38:0,

                 from c:\users\steve\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\avr\include\avr\io.h:422,

                 from c:\users\steve\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\avr\include\avr\pgmspace.h:90,

                 from C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.16\cores\arduino/Arduino.h:28,

                 from sketch\Blink.ino.cpp:1:

c:\users\steve\appdata\local\arduino15\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.3-arduino2\avr\include\avr\iotnx5.h:55:0: note: this is the location of the previous definition

 #define BIN     7

 ^

Verbose output is at C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hard - Pastebin.com

Any ideas appreciated.

I use the ArduinoISP program to upload code to an Attiny1634 (I did program some Attiny45s in the past but I can't remember the details). I am using this AttinyCore.

For uploading the code I select Tools/Programmer/Arduino as ISP

I needed to upload the bootloader initially to set the fuses properly on the chip but I don't use the bootloader after that.

...R

Thanks @Robin2 - that has overcome the errors above. It now compiles without error.

But it doesn't upload

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

An error occurred while uploading the sketch

But so many board options :o

Screenshot

I have tried with ATtiny24/44/84 and 24/44/85, also tried a few other combinations of board settings.

Do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck)
  • File > Preferences > Show verbose output during: > upload (check)
  • Click "OK"
  • Sketch > Upload
  • After the upload fails you'll see a button on the right side of the orange bar "Copy error messages" Click that button.
  • Paste the error messages in a reply here.

The reason I advise unchecking verbose output during compilation is because we know compilation is successful and so all that verbose output will not be helpful. I almost never turn that option on because most of it is only helpful in very rare cases. Unfortunately they did recently move the helpful "multiple libraries found" message to verbose output so that's the exception. I do always have "Compiler warnings" set to "All".

Note that ATTinyCore does not use the micronucleus bootloader.

I can only make suggestions based on the SpenceKonde core in the link I gave you and it presents the options somewhat differently. I don't think it supports the Attiny 13

What combination are you trying to work with?

You must have a core that supports the specific chip you are using because each chip variant has a different signature. Nick Gammon's diagnostic programs may help.

...R

That's very confusing that the subject says ATtiny85 but then you mention it's actually ATtiny13A. You can find a core for ATtiny13A here:

Thanks for all the responses.

A little knowledge is a dangerous thing: I didn't realise that the ATtiny13 is different to what I thought was a regular ATtiny - well maybe it is, but I thought it was essentially the same beast.

I have installed MicroCore and still have problems - seems to be the device signature. This looks like a genuine Amtel chip.

Arduino: 1.6.11 (Windows 10), Board: "ATtiny13, 9.6 MHz internal osc., 2.7v, -Os LTO enabled (default)"

Sketch uses 200 bytes (19%) of program storage space. Maximum is 1,024 bytes.
Global variables use 4 bytes (6%) of dynamic memory, leaving 60 bytes for local variables. Maximum is 64 bytes.
C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8/bin/avrdude -CC:\Users\Steve\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8/etc/avrdude.conf -v -pattiny13 -cstk500v1 -PCOM3 -b19200 -Uflash:w:C:\Users\Steve\AppData\Local\Temp\build9c9ef3bdfe2fccb480bc6e4bac749e41.tmp/Blink.ino.hex:i 

avrdude: Version 6.3, compiled on Dec 16 2016 at 13:33:19
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Steve\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino8/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATtiny13
         Chip Erase delay              : 4000 us
         PAGEL                         : P00
         BS2                           : P00
         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     5     4    0 no         64    4      0  4000  4000 0xff 0xff
           flash         65     6    32    0 yes      1024   32     32  4500  4500 0xff 0xff
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          2    0      0     0     0 0x00 0x00
           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

         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.03s

avrdude: Device signature = 0x000000 (retrying)

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x000000 (retrying)

An error occurred while uploading the sketch
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.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.