Wednesday, 22 May 2013

Arduino: Pololu USB AVR Programmer, Adding ISP Programmers to the Arduino IDE


This is a quick guide to show you how to add the Pololu USB AVR Programmer to the Arduino IDE, For burning bootloaders to blank chips or using the Arduino as a target board for programming in Atmel Studio or AVRDUDE.

This will work with all versions of the Arduino IDE, today we will be using Version 1.0.5 as of 22/05/2013



Locate your Arduino install folder (Default Windows example below),

C:\Program Files (x86)\Arduino\

Now navigate to the file path below

C:\Program Files (x86)\Arduino\hardware\arduino\programmers.txt



Open the "programmers.txt" file in Wordpad, You should see very similar text as shown below




Add the below text to the top or bottom of the "programmers.txt"

------------------------------------------------

avrispv2.name=Pololu USB (AVRISPv2)
avrispv2.communication=serial
avrispv2.protocol=avrispv2


------------------------------------------------

Your saved  "programmers.txt" should now look like this.
(ensure it is saved in the same ".txt" format)




























When loaded the Arduino IDE you should now see your Pololu Programmer!

Make sure you select the correct COM port for the programmer before use.



Notes on usage.......


Must use as STK500 in Atmel Studio

Use as "avrispv2" (not avrispmkII ) or "STK500v2"  in AVRDUDE / Arduino IDE

Programmer does not deliver power to the target device when used as an ISP programmer,TTL target can only powerd upto 100ma at 5 Volts.

First connect the Pololu Prammmer to the computer and power the target board before connecting the 6 pin ISP cable



Typical AVRDUDE command for an Atmel ATMEGA 328P  using the Pololu Programmer

"avrdude -c avrispv2 -p m328p"

Or

 "avrdude -c STK500v2 -p m328p"


Output

------------------------------------------------------------------------------------------------
C:\Users\koogar>avrdude -c avrispv2 -p m328p

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f

avrdude: safemode: Fuses OK

avrdude done.  Thank you.
------------------------------------------------------------------------------------------------



Below is a 6-10 pin ISP adaptor for breadboard use, purchased from Hobbytronics