Getting Started with STK200 Dragon
Introduction
This guide is designed to get you up and running with main software and
hardware. As you work through it, there could be lots of details you do not
understand, but these are covered in books and other documentation that you
can read later.
The main software package is AVRStudio, which is Atmel’s Integrated
Development Environment or IDE. There is also a plugin C Compiler module
called WinAVR that compiles C programs within AVRStudio. The Kanda
installer will install these packages and copy documentation to a folder on
your hard drive.
Default install path is
C:\Program Files\STK200 Dragon
AVRStudio
has its own Atmel-AVR Tools folder in Program Files, and can be
run from there or you can run from desktop icon.
WinAVR
never needs to be run directly, only from AVRStudio.
The AVRStudio IDE is designed for writing source code, in C (.c files) or
assembler (.asm files). These are then built or compiled into object code (.hex
files) for programming into the AVR using ISP or debug files (.elf files) to step
through the code.
The AVR Dragon hardware is a programmer and In Circuit Emulator (ICE) in
one tool. Once source code is built, it can be programmed into the AVR using
ISP, which will just run the code or it can be set in Debug mode (using
DebugWire or JTAG )that allows you to examine the code operation to find
bugs.
There are two Debug methods depending on the AVR device you are using
•
JTAG Mode
for AVR devices with 40-pins or more
•
DebugWire
for smaller pin-count devices.
In System Programming is common to all AVR devices, using serial
programming (
ISP
). Devices with JTAG can be programmed through JTAG as
well as ISP.
This guide describes the hardware setup for ISP, DebugWire and JTAG, with
associated AVRStudio software operations. The default AVR supplied is an
Atmega16. As this is a 40-pin device, it uses JTAG for debugging. Although it
can also be programmed through JTAG, we suggest you use ISP first to
familiarise yourself with standard programming.
There is a brief guide to the books and documentation at the end of this guide
as well as links to Atmel site, where more information is available about AVR,
AVRStudio and AVR Dragon.