KANDA STK200 Dragon Скачать руководство пользователя страница 1

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.

Содержание STK200 Dragon

Страница 1: ...nto 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 i...

Страница 2: ...and at www atmel com AVR Studio is project based so you need to create a project before you can do anything Project extension is aps Follow this procedure 1 Run AVRStudio and select New Project from W...

Страница 3: ...C Code section for using C language 3 Now go to Build Menu Build This will assemble the file and create object code file hex for programmer and Elf file for debugger in Project folder or sub folder c...

Страница 4: ...R Dragon board labeled ISP Connect the 6 way adapter to this header as shown with key way facing prototype area There is a jumper on adapter PCB This should be ON for ISP and OFF for DebugWire DW It i...

Страница 5: ...ter and into the 10 way box header on STK target board The complete ISP or DebugWire connection looks like this Connect the AVR Dragon to a USB port on your computer The New Hardware Wizard will appea...

Страница 6: ...d GND next to JTAG connector It has 3 VCC and 3 GND pins Connect the green wire supplied to one of the GND pins and the red wire to one of the VCC pins All the port headers on the STK200 board also ha...

Страница 7: ...this Dialog will appear Make sure AVR Dragon is set as platform and your connections are all ok and try Connect button Once it has connected you may get a Firmware Update message depending on your ve...

Страница 8: ...ess Change this to one of the External Crystal choices External Crystal Osc Or Resonator 8MHz or High Frequency at the bottom of the list Exact choice does not matter CLKDIV8 Some AVRs have this fuse...

Страница 9: ...finished debugging your code you will need to clear DWEN again or you will not be able to use ISP with the device Before exiting debug mode Stop Debugging you will need to disable DWEN Choose Debug A...

Страница 10: ...adapter to the correct port header with the back of the adapter PCB facing out from the board Fit the 10 way cable to the adapter and connect it to header marked JTAG on AVR Dragon with keyway facing...

Страница 11: ...der Folder Description AVR Studio folder contains 2 folders App Builder and Documentation App Builder is a Wizard to help create assembler or C file templates Documentation has PDF files on getting st...

Страница 12: ...e is a document called Pointers PDF in C Sample Code folder that covers arrays and pointers if you are not familiar with C programming Embedded C Book There is a PDF book on Embedded C Programming in...

Отзывы: