Figure 5. Setting PATH variable.
Figure 6. External Tools Dialog location.
fuse byte, which we can do with:
avrdude –c avrispv2 –p T26 –P /dev/cu.Pololu –U
Figure 7. External Tool Definition.
22 SERVO 09.2008
These lines must be written exactly as shown or the
OS won’t recognize the avrdude utility and avrdude might
not recognize the command options.
Now that we have programmed the fuses, we are
ready to program our device!
Programming the AVR microcontroller
After you have compiled your program, you can
download the hex file to your ATTiny26 right on the
command line. If you used the default location for your
workspace files, you will find these results: /users/
Tiny26.hex. To get to this directory, type:
You can program your part right now using this syntax:
Avrdude -c avrispv2 -p T26 -P /dev/cu.Pololu -U
While this works just fine, it is hardly convenient! Let’s
set Eclipse up to be able to program right from the IDE.
Click on the Eclipse globe on your dock (you did put it on
the dock, didn’t you?). It should come up with the project
that we’ve been working with; if not, it will have the
workspace at the bottom of the File pull-down menu.
Now click on Run->External Tools->Open External Tools
Dialog ... you will now be able to create an AVR
programmer tool that you can run from the IDE. Figure 6
shows this dialog location.
This will open the External Tools dialog. Figure 7 shows
how to configure the tool. Fill in everything that you see on
Figure 7. Make sure that you click Apply before you close
Now we have the tool defined and we can program
our device right from the icons at the top of the program
page. To program our ATTiny26, click on the black triangle
next to the icon that looks like a little white triangle in a
green circle with a suitcase hung on it. Pull down to your
tool name and release. In my case, it is called PFlash Tiny26.
Figure 8 shows what you will see. If you only have the one
tool defined, then you can just click on the green
circle/white triangle/suitcase icon directly.
Well, you’ve spent another chunk of time reading about
a complex solution to a problem. I hope that I’ve helped you
and many other folks out
with this rather long
explanation to a rather
short question. As always,
any questions, please
contact me at roboto@
and I’ll do my best to
Figure 8. Running the