You are on page 1of 2

Help file for batch files usage with Robokits STK200 AVR

Programmer

Original Content on file stk200.bat


@echo off

echo "avrdude -c stk200 -P lpt1 -p atmega32 -U flash:w:robokits.hex"


avrdude -c stk200 -P lpt1 -p atmega32 -U flash:w:robokits.hex

pause

Instructions

PonyProg is slow in verifying the data since it checks whole flash instead of checking
the written part only.
AVRDUDE is faster and easier to use. Just some batch files are needed for this purpose.
To use it install AVRDUDE or WinAVR first.
Just double click on the stk200.bat file.
For the given file it will use LPT1 to program. It will program ATmega32 with
Robokits.hex file provided that it is in the same folder.
Change parallel port settings device name or the file to be flashed if required by right
clicking and choosing option edit in Windows.
If you are using different LPT port lets say LPT2 then replace the word lpt1 with lpt2 in
the batch file.
Similarly you can change device name and the file to be programmed.
You can also use the same file for other supported programmers the same way.
See the AVRDUDE manual for further use.
You can also read and program the configuration bits on AVR.
Configuration bits have to be written by equivalent HEX values. So, for Configuration
Bits we would suggest you to use the PonyProg software.
If you are programming fuse bits thought AVRdude, you can use this link to calculate
fuse bits. http://palmavr.sourceforge.net/cgi-bin/fc.cgi
When you double click the batch file the window shown below will pop up and will show
the process.
Disclaimer
Copyright Robokits India, 2006

Neither the whole nor any part of the information contained in, or the product described in this
manual, may be adapted or reproduced in any material or electronic form without the prior written
consent of the copyright holder.

This product and its documentation are supplied on an as-is basis and no warranty as to their
suitability for any particular purpose is either made or implied.

This document provides preliminary information that may be subject to change without notice.

You might also like