avr_hvsp.pl - an avrdude clone to talk HVSP to AVR chips
avr_hvsp.pl
avr_hvsp.pl [-e] [-n] [-D] [-U MEMORY:OP:FILE:FORMAT] ...
This script implements a command that behaves somewhat like avrdude, using Device::Chip::AVR_HVSP to talk to an AVR chip in HVSP mode via a suitable circuit attached to a chip adapter. The module provides a detailed description of a suitable circuit.
Name of the Device::Chip adapter subclass to use. Defaults to BusPirate.
BusPirate
A comma-separated list of additional options to pass to the mount method, e.g. for configuring GPIO pin mappings.
mount
The following options are designed to be compatible with avrdude
Overrides the default baud rate of 115200, in case for some reason the Bus Pirate has been reconfigured. Normally it should not be necessary to alter this.
Skips the implied chip erase operation before writing the eeprom or flash memories.
eeprom
flash
Perform a full chip erase before other operations. Normally this is not required because the memory writes that would require it (eeprom and flash) normally do this automatically.
Do not perform any writes to the chip; restrict operation only to read and verify.
Device node where the Bus Pirate can be found. If not supplied, the value of the BUS_PIRATE environment variable will be used, or /dev/ttyUSB0 if that is not defined.
BUS_PIRATE
Performs a memory transfer operation of the OP type (which may be r for read, w for write, or v for verify) with a chip memory. This is transferred to or from a file whose name and format are given.
OP
r
w
v
The types of memory and file formats are listed below. As a special extension, the filename - may be given, to read from standard input, or write to standard output.
-
Reads all of the chip memories that are writable (i.e. not the signature or calibration) and writes their entire contents to the given file, in an extension of the Intel Hex format, where each memory starts with a comment giving its name.
Writes memories to the chip from the given file in a format written by backup-all.
backup-all
The following memories are recognised
signature (read-only)
calibration (read-only)
lock
lfuse, hfuse, efuse
The following file formats are recognised
Intel Hex (type i)
i
Decimal (type d), Hexadecimal (type h), Octal (type o)
d
h
o
Output-only; writes a string of text, containing comma-separated integers for each byte individually.
Immediate (type m)
m
Input-only; interprets the filename directly as a comma- or space-separated list of integers in any of decimal, hexadecimal or octal form. Most useful for setting fuses or lock bits.
This program only works those ATtiny devices that support HVSP mode. It does not support ISP or HVPP.
Does not support other file formats - Motorola S-record, raw binary, ELF, or binary textual encoding.
Does not implement avrdude telnet mode, nor many of the other commandline options.
Paul Evans <leonerd@leonerd.org.uk>
To install Device::Chip::AVR_HVSP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Chip::AVR_HVSP
CPAN shell
perl -MCPAN -e shell install Device::Chip::AVR_HVSP
For more information on module installation, please visit the detailed CPAN module installation guide.