0

I bought a bunch of Attiny12's from Digikey without checking if I can even program them with an Arduino. I've looked around a bunch, and I've only ever found ways to program Attiny13 and Attiny10.

Strangely, one of the board packages I downloaded had board information for the Attiny12 in the avrdude.conf file, but I can't select it in the Arduino IDE. I've tried to change the Attiny13 info in the config file to the Attin12 and just selecting the Attiny13, but I'm getting the following error:

         Using Port                    : COM3
         Using Programmer              : stk500v1
         Overriding Baud Rate          : 19200
         AVR Part                      : ATtiny13
         Chip Erase delay              : 20000 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         4     8    64    0 no         64    0      0  9000 20000 0xff 0xff
           flash          4     5   128    0 no       1024    0      0  4500 20000 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
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           hfuse          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

         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)

Error while burning bootloader.
Reading | ################################################## | 100% 0.03s

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

Anyway I can program the Attiny12 without resorting to a dedicated programmer?

8
  • are you asking about programming with Arduino or with Arduino IDE?
    – jsotola
    Oct 23, 2022 at 19:09
  • info about programming is almost non-existent ... maybe info here can be used to write a programming sketch ... web.archive.org/web/20090823113448/http://www.xs4all.nl:80/…
    – jsotola
    Oct 23, 2022 at 20:06
  • here is the datasheet for Attiny12 ... it's the 94 page one labeled ATtiny11/12 ... web.archive.org/web/20090417081256/http://www.atmel.com/dyn/…
    – jsotola
    Oct 23, 2022 at 20:39
  • 1
    LOL. Well, in some ways I love the question, but you're not going to run an Arduino sketch on this thing. And it's for the same reason. The ATTiny12 has no RAM. I don't mean little RAM, I mean literally no RAM and no way to add RAM to its internal address space. Basically, all you have inside the chip for mutable state is the general purpose registers and whatever peripheral registers you can cram stuff into. gcc/g++ do not support it as a C or C++ target. So, if you want to know about ardunoisp.ino to program an assembly program, okay. But, you're not going to code this chip with Arduino.
    – timemage
    Oct 23, 2022 at 23:02
  • @timemage Huh, I completely missed that. So what's the purpose of this microcontroller? Oct 23, 2022 at 23:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.