This is an old revision of the document!


Pololu USB AVR

The Pololu USB AVR Programmer Version 2.1 is a versatile and reliable interface device that programs ATMEGA AVR devices.

pololuusbavr.jpg

pololu.jpg

Install

Fetch required binary archive for your computer system and install the utility software to control the special features of the programmer.

Avrdude will be used to perform the actual programming once everything is setup.

tar Jxvf pololu-usb-avr-programmer-v2-1.1.0-linux-rpi.tar.xz
cd pololu-usb-avr-programmer-v2-1.1.0-linux-rpi
sudo ./install.sh

Test

Check that things are operating

$ pavr2cmd -s
Name:                                    Pololu USB AVR Programmer v2.1
Serial number:                           00263944
Firmware version:                        1.02
Programming port:                        /dev/ttyACM1
TTL port:                                /dev/ttyACM2

Settings:
  ISP frequency (kHz):                   114
  Max ISP frequency (kHz):               1714
  Regulator mode:                        auto
  VCC output:                            Disabled
  VCC output indicator:                  Blinking
  Line A function:                       None
  Line B function:                       DTR
  VCC/VDD maximum range (mV):            896
  VCC 3.3 V minimum (mV):                2720
  VCC 3.3 V maximum (mV):                3872
  VCC 5 V minimum (mV):                  4128
  VCC 5 V maximum (mV):                  5856
  STK500 hardware version:               F
  STK500 software version:               2.A

Results from last programming:           N/A

Current status:
  Target VCC (mV):                       0
  Programmer VDD (mV):                   3328
  VDD regulator set point:               3.3 V
  Last device reset:                     Power-on reset

Help

$ pavr2cmd -h
pavr2cmd: Pololu USB AVR Programmer v2 Command-line Utility
Version 1.1.0
Usage: pavr2cmd OPTIONS

General options:
  -s, --status                Show programmer settings and info.
  -d SERIALNUMBER             Specifies the serial number of the programmer.
  --list                      List programmers connected to computer.
  --prog-port                 Print the name of the programming serial port.
  --ttl-port                  Print the name of the TTL serial port.
  -h, --help                  Show this help screen.

Options for changing settings:
  --regulator-mode MODE       Sets programmer's operating voltage.
                              auto - choose 3.3 V or 5 V based on target VCC
                              3v3  - always 3.3 V
                              5v   - switch to 5 V soon after power up
  --vcc-output OPTION         Choose whether the programmer supplies power
                              to target VCC.  Options: enabled, disabled.
  --vcc-output-ind OPTION     Sets how to indicate that VCC is an output.
                              blinking - yellow LED(s) blink at 8 Hz (default)
                              steady - yellow LED(s) are on constantly
  --freq NUM                  Sets the ISP frequency (in units of kHz).
                              Must be typed exactly as shown below.
                              Suggested values: 3000, 2400, 2000, 1714
                              1500, 1200, 1000, 750, 444, 114 (default),
                              28.3, 14.0, 6.98, 3.47, 1.744, 1.465.
  --max-freq NUM              Sets the max ISP frequency (in units of kHz).
                              Must be typed exactly as shown below.
                              Suggested values: 3000, 2400, 2000,
                              1714 (default), 1500, 1200, 1000, 750.
  --line-a FUNC               Set the function of line A.  Valid FUNCs are:
                              none, cd, dsr, dtr, rts, dtr-reset.
  --line-b FUNC               Set the function of line B.  Valid FUNCs are:
                              none, cd, dsr, dtr, rts, clock, dtr-reset.
  --vcc-vdd-max-range MV      Sets the maximum allowed range for VCC and VDD
                              while programming.
  --vcc-3v3-min MV            Minimum allowed VCC while programming at 3.3 V.
  --vcc-3v3-max MV            Maximum allowed VCC while programming at 3.3 V.
  --vcc-5v-min MV             Minimum allowed VCC while programming at 5 V.
  --vcc-5v-max MV             Maximum allowed VCC while programming at 5 V.
  --sw-minor HEXNUM           Set STK500 software version minor (in hex)
  --sw-major HEXNUM           Set STK500 software version major (in hex)
  --hw HEXNUM                 Set STK500 software hardware version (in hex)
  --restore-defaults          Restore factory settings

This utility only supports the Pololu USB AVR Programmer v2
(blue-colored, labeled "pgm04a").

MV should be a voltage in millivolts.  For example, "3400" means 3.4 V.

For more help, see: https://www.pololu.com/docs/0J67

Usage

The programmer can either be used in ISP STK500 mode else as a serial UART for a bootloader.

Query a MEGA2560 connecter by ISP.

avrdude -B 5 -c avrisp2 -P `pavr2cmd --prog-port` -p m2560

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies