Arduino UNO + Pololu USB AVR Programmer : issues

I want to burn the bootloader in a blank Atmega328. I use the Pololu programmer, connecting the ICSP plug directly to Arduino, battery-powered.

I adjusted the two configuration files in this way (I'm under Windows XP):

##Add this to the top of the boards.txt file.

board328p.name=Boarduino
board328p.upload.using=avrispv2
board328p.upload.maximum_size=32768
board328p.build.mcu=atmega328p
board328p.build.f_cpu=16000000L
board328p.build.core=arduino

##Add this to the bottom of the programmers.txt file.

avrispv2.name=AVR ISP v2
avrispv2.communication=serial
avrispv2.protocol=avrispv2

I open the program the Arduino, and select:

Arduino UNO
com port -> Pololu COM port (there are 2)
Programmer -> AVR ISP v2

I get only errors. I tried using both the COM, I tried to use Boarduino instead of Arduino.

Nothing to do. Please help me!

Thank you all!

Open Device Manager. Open the Ports node. There should be two entries for the Pololu programmer...

Pololu USB AVR Programmer Programming Port (COM?)
Pololu USB AVR Programmer TTL Serial Port (COM?)

Which serial port is in parenthesis after the "Programming Port"?

12 and 13!!

Which serial port is in parenthesis after the "Programming Port"?

I have this configuration:

Uploaded with ImageShack.us

To program the bootloader I try to use COM number 12, but I get this error:

Uploaded with ImageShack.us

I changeg COM number to 5 and 6 in order to use the programmer under AVR STUDIO, but it cant recognize the programmer...

COM12 is the correct choice.

I changed 12 to 5 because avr studio can accepts COM port untill 9

Did you install the device driver...

Does the configuration utility work...

I know the manual very well :smiley:

But you use the programmer with Arduino software? Or you use AVRDUDE ?

GianfrancoPa:
But you use the programmer with Arduino software?

Yes.

Or you use AVRDUDE ?

Sometimes.

Arduino IDE uses the avrdude it just hides that from the user...

I know it, but I have to exclude, if possible, that the programmer is broken...

Have you tried using the configuration utility?

Have you tried a different USB cable?

Are you certain you have the six-pin cable correctly connected?

Yes, it recognizes the programmer

Have you tried a different USB cable?

Yes, I get the same issues!

Are you certain you have the six-pin cable correctly connected?

The controller has a yellow LED that flashes when it receives from 5V Vcc (more or less). when the Arduino is running normally, the reset pin has a voltage of 5V, but when I press the reset button, this pin indicates 0V.

When I plug in the 6-pin connector, I press the reset button, if the LED
yellow is still blinking, it means it is connected properly. however, if not blinking, it means that I have reversed the sense of connection!

is wrong?

Sounds like it is working just like mine does. Try this from the command-line...

avrdude -v -v -v -patmega328 -cavrispv2 -P\.\COM5

Under AVRDUDE, no?

Under AVRDUDE, no?

I don't understand.

I have to launch this command line using AVRDUDE, not Arduino software, isn't it?

Yes. You type the command (or copy-and-paste it) into a "dos prompt" (a command-shell). The command shell can be started by running "CMD".

You will either have to navigate to the folder containing AVRDUDE or modify the PATH. These update the PATH on my computer so I can run AVRDUDE...

set PATH=%PATH%;C:\Arduino\arduino-0022\hardware\tools\avr\utils\bin
set PATH=%PATH%;C:\Arduino\arduino-0022\hardware\tools\avr\bin
set PATH=%PATH%;C:\arduino\arduino-0022\hardware\tools\avr\etc

Replace "C:\Arduino\arduino-0022" with the Arduino root folder on your computer.