![KANDA STK200ICE Quick Start Manual Download Page 5](http://html1.mh-extra.com/html/kanda/stk200ice/stk200ice_quick-start-manual_3354891005.webp)
Loading a sample file into AVR Studio
•
Create a New Project in AVR Studio, and give it a name. Note the path to the project.
•
Uncheck “Create Initial File”
•
On next screen, select Debug Program as JTAG AVR and Device as ATmega162
(STK300ICE – Atmega128)
and click finish
•
Go to
Project menu > Add Existing File
and open bincount200.asm from CD
(Samples > STK200 > Bincount)
or STK300 -bincount300.asm for STK300ICE
•
Press F7 or Go to
Project menu > Build
to assemble the file. The output file is a .hex
file for the programmer – this will be stored in the same folder as the Project.
Programming file into AVR
In AVR Studio, go to
Tools Menu > AVRISP
(or run AVRISP yourself from programs or
desktop icon)
In AVRISP, change the Device to Atmega162
(or ATmega128 for STK300ICE)
Now select
File > Load > Flash
and open bincount200.hex
(or bincount300.hex)
from
the AVR Studio Project folder.
Now select
Device > Program > Flash
. Press F9 to Run or disconnect the ISP cable and
the file should run on the STK200 board
Using JTAGAVR ICE Tool
The next tool to look at is the In Circuit Emulator. We selected the JTAG AVR as the
debug tool when we created the project, so the AVR Studio is ready to accept it. No
software needs to be installed but there is a lot of documentation about using the
emulator on the CD in
Documentation > ICE
folder.