Copyright
©
Kanda 2013
13
1) The Project is displayed at the left of the screen. Right click on the Project name and
choose Add Files to Project
2) Select an assember file from Sample Code > STK300 folder on CD, such as
LedFlash300.asm
3) Now go to Build Menu > Build. This will assemble the file and create object code file
(.hex) for AVRISP programmer.
To Run the code in the Simulator, go to Debug Menu > Start Debugging. Choose
commands such as Step Over to step through code or add Breakpoints and Run. These
debug features are described in documentation and in AVR Studio help.
Running AVRISP from AVR Studio
AVRISP will be added to AVR Studio Tools menu, if it is installed after AVR Studio. The
default installer for STK300 will install them in the correct order.
To run AVRISP from AVR Studio, go to
Tools Menu > Kanda Tools > AVRISP-U
AVRISP will open a project with the correct files and device choice, using your AVR
Studio project. It will also set Auto-program Options to
•
Reload
File
•
Erase
•
Program and Verify Flash
•
Program and Verify EEPROM, if an EEPROM file exists
•
Run the device
This means that you just need to use AutoProgram (F5) to load your code into the AVR
on the STK200 board.
C Projects
Winavr (on CD) is a C Compiler for AVR, which will be installed by Kanda AVR installer
by default.. When you run Studio you can select project type as AVR GCC – use this for
WinAVR. If Winavr is not installed, AVRStudio will prompt for installation.