Servo Trigger Programming Guide

Contributors: Byron J.
Favorited Favorite 4

Programming Tools

This guide will walk you through recreating the development environment used in Servo Trigger developemt. Atmel Studio makes a nice graphical front end and has a full-featured debugger, it is not required to recompile the firmware or reprogram the IC.

However, it only runs under Windows.

If you're running Linux or OSX, you can still use the the command-line AVR-GCC tools. Here is a guide to setting them up. However, you'll be in uncharted territory, as the author isn't using those environments.


The Servo Trigger firmware was developed using Atmel Studio 6.2. Atmel Studio merges Microsoft's Visual Studio IDE with compiler and debugging tools targeting Atmel microcontrollers. The AVR tools use AVR-GCC, the same compiler used by the Arduino IDE.

alt text

The IDE communicates with the microcontroller using a programming dongle. The Servo Trigger was developed with the JTAGICE3 and AtmelICE PCBA debugging modules. These units can configure and program the chip and also offer a full-featured interactive debugger. You can pause execution and inspect the chip internals, which makes troubleshooting the application significantly simpler -- especially because the Tiny84 lacks a serial port that could print debugging information. If you're coming from platforms that don't offer it, interactive debugging is a very powerful technique.

alt text

If you're using Atmel Studio, the /firmware/ directory in the repo contains the solution (*.atsln) file.