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.
Synopsis: stk500
[-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] [-F value]
[-q] [-x value] [-af start,stop] [-ae start,stop] [-c port]
[-ut value] [-ua value] [-wt] [-wa] [-j value] [-b h|s] [-! freq] [-&]
[-t p|t] [-g] [-z] [-h|?]
Parameters
- d
- Device name. Must be applied when programming the device. See list below.
- m
- Select programming mode; serial (s) or parallel (p). Serial progr. mode
is the default, and is used if this parameter is 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 ofEEPROM 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 callibration 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.
- y
- Read back lock byte.
- f
- Set fuse bytes. 'value' is a 16-bit hex. value describing the settings
for the upper and lower fuse.
- q
- Read back fuse bytes.
- x
- Fill unspecified locations with a value (0x00-0xff). The default is to
not program locations not specified in the input files.
- af
- FLASH address range. Specifies the address range of operations. The default
is the entire FLASH. Byte addresses.
- ae
- EEPROM address range. Specifies the address range of operations. The default
is the entire EEPROM. Byte addresses.
- c
- Select communication port; 'com1' to 'com8'. If this parameter is ommitted
the program will scan the comm. ports for the STK500.
- ut
- Set target voltage VTARGET in Volts. 'value' is a floating point value
between 0.0 and 6.0, describing the new voltage.
- ua
- Set adjustable voltage AREF in Volts. 'value' is a floating point value
between 0.0 and 6.0, describing the new voltage.
- wt
- Get current target voltage VTARGET.
- wa
- Get current adjustable voltage AREF.
- b
- Get revisions; hardware revision (h) and software revision (s).
- !
- Set oscillator frequency; 'freq' is the frequency in Hz.
- &
- Get oscillator frequency.
- g
- Silent operation.
- z
- No progress indicator. Eg. if piping to a file for log purposes, use this
option to avoid the non-ascii characters used for the indicator.
- h|?
- Help information (overrides all other settings).
Syntax for Supported Devices
AT90S1200 |
AT90S8515 |
AT90C8534 |
ATTINY11 |
AT90S2313 |
AT90S2323 |
ATMEGA103 |
ATTINY12 |
AT90S4414 |
AT90S2343 |
ATMEGA161 |
ATTINY15 |
AT90S4433 |
AT90S8535 |
ATMEGA163 |
ATTINY22 |
AT90S2333 |
AT90S4434 |
ATMEGA32 |
ATTINY28 |
See Also