Using AVR Studio
AVR STK500 User Guide
5-9
1925C–AVR–3/03
5.4
Command Line
Software
The DOS command line version of the STK500 software is useful for programming
STK500 from external editors or for use in production programmers. Simple batch files
can be made for automatic programming. Type “STK500 -?” for help.
The program returns ERRORCODE 0 if the operation was successful, and ERROR-
CODE 1 if the operation failed.
Command Line Switches:
[-d device name] [-m s|p] [-if infile] [-ie infile] [-of outfile]
[-oe outfile] [-s] [-O] [-Sf addr] [-Seaddr] [-e] [-p f|e|b]
[-r f|e|b] [-v f|e|b] [-l value] [-L value] [-y] [-f value] [-E value]
[-F value] [-G value] [-q] [-x value] [-af start,stop] [-ae start,stop]
[-c port] [-ut value] [-ua value] [-wt] [-wa] [-b h|s] [-! freq] [-t]
[-g] [-z] [-h|?]
5.5
Parameters
d
Device name. Must be applied when programming the device. See list below.
m
Select programming mode; serial (s) or parallel/High-voltage (p).
Serial programming mode is the default, and is used if this parameter not
applied.
if
Name of FLASH input file. Required for programming or verification of the FLASH
memory. The file format is Intel Extended HEX.
ie
Name of EEPROM input file. Required for programming or verification of the
EEPROM memory. The file format is Intel Extended HEX.
of
Name of flash output file. Required for readout of the FLASH memory. The file
format is Intel Extended HEX.
oe
Name of EEPROM output file. Required for readout of the EEPROM memory. The
file format is Intel Extended HEX.
s
Read signature bytes.
O
Read oscillator calibration byte.
Sf
Write oscillator call. byte to FLASH memory. “addr” is byte address
Se
Write oscillator call. byte to EEPROM memory. “addr” is byte address
e
Erase device. If applied with another programming parameter, the device will be
erased before any other programming takes place.
p
Program device; FLASH (f), EEPROM (e) or both (b). Corresponding input files
are required.
r
Read out device; FLASH (f), EEPROM (e) or both (b). Corresponding output files
are required
v
Verify device; FLASH (f), EEPROM (e) or both (b). Can be used with -p or stand
alone. Corresponding input files are required.
l
Set lock byte. “value' is an 8-bit hex. value.
L
Verify lock byte. “value” is an 8-bit hex. value to verify against.
y
Read back lock byte.
Summary of Contents for AVR STK500
Page 1: ...STK500 User Guide ...
Page 2: ......
Page 38: ...Hardware Description 3 28 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 40: ...Installing AVR Studio 4 2 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 52: ...In System Programming of an External Target System 6 2 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 56: ...Technical Support 8 2 AVR STK500 User Guide 1925C AVR 3 03 ...
Page 60: ...Appendix A 10 2 AVR STK500 User Guide 1925C AVR 3 03 ...