ATtiny Flasher

by Sonocotta

Open-hardware flashing tool for the Atmel ATtiny

View all updates Jul 12, 2021

Experimenting With Newer Protocols (and Lower Funding Goals!)

by Andriy

Reduced Funding Goal

I am committed to getting ATtiny Flasher out into the world, so—in consultation with Crowd Supply—I’ve decided to reduce the campaign’s funding goal to the true bare minimum of $3,000. Which means that, as of today, our campaign has funded! Thank you all for your support, and know that I am working hard to get your ATtiny Flasher out the door and on its way to your workbench!

UPDI Protocol Development

As I’ve mentioned before, I’m really keen to support UPDI on ATtiny Flasher, which would allow it to work with newer members of the ATtiny family, some of which now have more peripherals than some classic ATmegas. STK2UPDI and jtag2updi should do the trick, but I’m currently struggling to make it all work properly. ATtiny Flasher seems to spits out the necessary commands, but the MCU does not yet respond. I’m using ATtiny412 for testing. It has a UPDI pin combined with GPIO function, so it’s possible that the latter is interfering with communication. At any rate, it’s something I still need to figure out!

ATmega32u4 Swap Considerations

One issue I encountered while investigating the TPI and UPDI protocols is pushing me toward a host-MCU replacement. You see, the upload method that ATtiny Flasher currently uses is STK500 v1, which is a serial protocol that does not support TPI or UPDI. Most (though not all) modern protocols use USB communication instead of serial, and it is technically possible to do so with ATMegaX8 chips. (USBASP is an example). This technique is a bit hacky, though, and not particularly stable unless it’s the sole function of the tool. ATmega32u4, on the other hand, has native USB support. It is slightly more expensive, but it wouldn’t require the CH340 serial-bridge chip, which would help offset the increased price. I’m still considering th pros and cons of this revision, as swapping out the MCU might cause some delays by triggering a new round of bug-fixes.

Production Plans

During the testing of ATtiny Flasher I found that one PCB behaves really weirdly. I am only able to flash it successfully every second time, at best, which has me thinking that I should either develop a test jig or test the boards myself, which probably makes more sense for a small-volume manufacturing run.

About the Author

Andriy

anabolyc  ·   Poland


$4,555 raised

of $3,000 goal

151% Funded! Order Below

Product Choices

$25

ATtiny Flasher

ATtiny Flasher with OLED screen.


$19

Educational Project Kit 1: Traffic Light

ATtiny85-driven "traffic light"


$19

Educational Project Kit 2: Rubber Ducky

ATtiny85-driven "USB rubber ducky" tool capable of emulating keyboard & mouse devices


$19

Educational Project Kit 3: IR Messenger

ATtiny85-driven IR remote transmitter & receiver


$19

Educational Project Kit 4: Rainbow LEDs

ATtiny85-driven circle of addressable LEDs


$39

Educational Project Kit 5: Digital Clock

ATtiny85-driven digital clock


$5

Half-size Breadboard

From the Crowd Supply Basics project.

A half-size (3.25 x 2.125 in ~ 8.3 x 5.4 cm) breadboard with a self-adhesive backing


$1

ATtiny13

From the Crowd Supply Basics project.

A 20 MHz, 8-bit, 8-pin DIP AVR MCU with 6 I/O, 1 KiB flash, 64 B SRAM, 64 B EEPROM, a SPI interface, and an input voltage range of 1.8 - 5.5 V.


$2

ATtiny85

From the Crowd Supply Basics project.

A 20 MHz, 8-bit, 8-pin DIP AVR MCU with 6 I/O, 8 KiB flash, 512 B SRAM, 512 B EEPROM, a USI interface, and an input voltage range of 2.7 - 5.5 V.

Credits

Sonocotta

Electronic components and kits


Andriy Malyshenko

See Also

Subscribe to the Crowd Supply newsletter, highlighting the latest creators and projects: