Close

Set Up Atmel Studio for ATtiny and Add jtag2updi Programmer

A project log for ATtiny 0 Series programming on the cheap

The newer range of ATtinys can be programmed with an Arduino and Atmel Studio 7. Don't be put off if you have only used the Arduino IDE!

Simon MerrettSimon Merrett 05/15/2019 at 23:010 Comments

We're going to open Atmel Studio and add our device pack for ATtiny, then add our hardware programmer to the list of devices we can use to programme from within Atmel Studio (such as the Atmel ICE programmer). This should speed up our development iterations over using avrdude from the command line each time we want to upload code to the ATtiny.

Open up Atmel Studio and open Tools\Device Pack Manager: 

On Windows you may be asked if you want Device Pack Manager to make changes to your system. I clicked Yes.

If you have a green icon and an "Install" button next to ATtiny DFP 1.3.229 click it and follow the instructions so it installs and you end up looking like this:

You can now close the Device Pack Manager and go back to the main Atmel Studio screen. Now we're going to add our jtag2updi Arduino as a hardware programmer that uses avrdude from within Atmel Studio. Click Tools\External Tools 

And a window will pop up like this one, which you are going to copy the contents of into yours:

You should be all set to programme your ATtiny402 from Atmel Studio now! I have written this guide a couple of weeks after I first went through the process so if I have missed a step, please shout in the comments.

Discussions