Arduino UNO + Pololu USB AVR Programmer : issues

Support for Pololu products that are not covered by one of the above categories.

Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Thu Mar 17, 2011 4:03 am

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 SP3):

#####
##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 Arduino software, 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 (12 and 13), I tried to use Boarduino instead of Arduino, but I get always the same error:

Image

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

Thanks you!
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby DavidEGrayson » Thu Mar 17, 2011 9:19 am

I think you should close the Arduino IDE and just try using AVRDUDE + Pololu USB AVR Programmer to flash the bootloader on to the Arduino.

First of all, have you located the HEX file for the bootloader that you want to burn on to your ATmega328?

Secondly, have you determined what COM port your programmer is on? Please unplug your programmer, plug it back in, and then look your Device Manager and tell me all of the entries you see under "Ports (COM & LPT)". The one that is labeled "Pololu USB AVR Programmer Programming Port" is the COM port you should be using

Please try to burn the bootloader by opening a Command Prompt and typing something like

Code: Select all Expand


You should replace COM2 with the name of programming port as shown in your Device Manager and replace "bootloader.hex" with the name/path of the bootloader HEX file that you want to burn.

If that does not work, please post the command you ran and the entire output of avrdude here. If the red LED on the programmer turns on then try running the Pololu USB AVR Configuration Utility (which is included with the drivers) to find out what the error is, and use that same program to tell us what ISP frequency the programmer is configured to use.

--David
DavidEGrayson
Pololu Employee
 
Posts: 2727
Joined: Thu Apr 03, 2008 11:30 am
Location: Las Vegas, NV

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Thu Mar 17, 2011 10:36 am

DavidEGrayson wrote:I think you should close the Arduino IDE and just try using AVRDUDE + Pololu USB AVR Programmer to flash the bootloader on to the Arduino.
--David


I'll try!

DavidEGrayson wrote:First of all, have you located the HEX file for the bootloader that you want to burn on to your ATmega328?
--David


I don't have the file, i'll find it.

Secondly, have you determined what COM port your programmer is on? Please unplug your programmer, plug it back in, and then look your Device Manager and tell me all of the entries you see under "Ports (COM & LPT)". The one that is labeled "Pololu USB AVR Programmer Programming Port" is the COM port you should be using


Yes, now it is COM n° 5. If I unplug/plug the programmer i find "Pololu USB...." at COM port n°5

In any case, the LEDs appear to be correct: the green is fixed, and the yellow flashes (red off) when I connect the ISP connector to Arduino (battery powered).

It is strange that AVR Studio does not recognize the controller. I'll try with AVRDUDE

Thanks, thanks, thanks!!!
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Fri Mar 18, 2011 10:56 am

Always error:


D:\>avrdude -p m328p -P COM5 -c avrispv2 -e -U flash:w:\Documenti\elettronica\ar
duino-0020\arduino-0020\hardware\arduino\bootloaders\optiboot\optiboot_atmega328
.hex
avrdude: ser_send(): write error: sorry no info avail

D:\>
D:\>
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby DavidEGrayson » Fri Mar 18, 2011 11:22 am

Okay. Could you also try running avrdude with a different -P argument? Try the same command you tried before, but replace "-P COM5" with "-P \\.\USBSER000". Please also try "-P \\.\USBSER001" and "\\.\USBSER002".

Also, if you haven't done so recently, try unplugging your programmer and rebooting your computer.

--David
DavidEGrayson
Pololu Employee
 
Posts: 2727
Joined: Thu Apr 03, 2008 11:30 am
Location: Las Vegas, NV

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Fri Mar 18, 2011 11:47 am

Both first, and after reboot:

D:\>avrdude -p m328p -P \\.\USBSER000 -c avrispv2 -e -U flash:w:\Documenti\elett
ronica\arduino-0020\arduino-0020\hardware\arduino\bootloaders\optiboot\optiboot_
atmega328.hex
avrdude: ser_send(): write error: sorry no info avail

D:\>avrdude -p m328p -P \\.\USBSER001 -c avrispv2 -e -U flash:w:\Documenti\elett
ronica\arduino-0020\arduino-0020\hardware\arduino\bootloaders\optiboot\optiboot_
atmega328.hex
avrdude: ser_send(): write error: sorry no info avail

D:\>avrdude -p m328p -P \\.\USBSER002 -c avrispv2 -e -U flash:w:\Documenti\elett
ronica\arduino-0020\arduino-0020\hardware\arduino\bootloaders\optiboot\optiboot_
atmega328.hex
avrdude: ser_open(): can't open device "\\.\USBSER002": Impossibile trovare il f
ile specificato.


D:\>
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Fri Mar 18, 2011 12:13 pm

I'm now trying to use TTL serial port (6) using putty, but I receive "Error writing to serial device".
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Fri Mar 18, 2011 3:12 pm

Now I have installed the programmer in another WIN XP SP3:

F:\>avrdude -p m328p -P COM4 -c avrispv2 -e -U flash:w:\arduino-0020\arduino-002
0\hardware\arduino\bootloaders\optiboot\optiboot_atmega328.hex

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude: Device signature = 0x1e950f
avrdude: erasing chip
avrdude: reading input file "\arduino-0020\arduino-0020\hardware\arduino\bootloa
ders\optiboot\optiboot_atmega328.hex"
avrdude: error opening \arduino-0020\arduino-0020\hardware\arduino\bootloaders\o
ptiboot\optiboot_atmega328.hex: No such file or directory
avrdude: input file \arduino-0020\arduino-0020\hardware\arduino\bootloaders\opti
boot\optiboot_atmega328.hex auto detected as invalid format
avrdude: can't open input file \arduino-0020\arduino-0020\hardware\arduino\bootl
oaders\optiboot\optiboot_atmega328.hex: No such file or directory
avrdude: write to file '\arduino-0020\arduino-0020\hardware\arduino\bootloaders\
optiboot\optiboot_atmega328.hex' failed

avrdude: safemode: Fuses OK

avrdude done. Thank you.


F:\>



what do you think??
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby Ben » Fri Mar 18, 2011 3:19 pm

avrdude: error opening \arduino-0020\arduino-0020\hardware\arduino\bootloaders\o
ptiboot\optiboot_atmega328.hex: No such file or directory


Hello.

You can see from the error message that avrdude cannot find the hex file you have specified. Are you sure the file path is correct?

- Ben
User avatar
Ben
Pololu Employee
 
Posts: 3454
Joined: Mon Aug 28, 2006 12:05 pm
Location: Las Vegas, NV

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Fri Mar 18, 2011 9:48 pm

May be wrong, but after that I tryed with AVRDUDE, I tryed with Arduino
software, and I have written the bootloader correctly!!

But, why in the first PC I get error?? Is as the com ports are blocked!
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby DavidEGrayson » Sat Mar 19, 2011 9:37 am

I'm glad you got the bootloader loaded, but I'd like to figure out what went wrong with the programmer.

Please let me know: Does your Arduino UNO's USB connection / bootloader work on the same computer where our programmer didn't work?

What version of usbser.sys is on the computer where the programmer didn't work? You can check what version of this driver you have by looking in the “Details” tab of the “Properties” window for C:\Windows\System32\drivers\usbser.sys.

Could you connect your programmer to the computer where it didn't work and look carefully in the Device Manager in the Ports (COM & LPT) list to see if there is anything wrong with the programmer's drivers? Try double clicking on them and tell me what the "Device Status" box says.

--David
DavidEGrayson
Pololu Employee
 
Posts: 2727
Joined: Thu Apr 03, 2008 11:30 am
Location: Las Vegas, NV

Re: Arduino UNO + Pololu USB AVR Programmer : issues

Postby GianfrancoPa » Sun Mar 20, 2011 2:05 am

DavidEGrayson wrote:I'm glad you got the bootloader loaded, but I'd like to figure out what went wrong with the programmer.

Please let me know: Does your Arduino UNO's USB connection / bootloader work on the same computer where our programmer didn't work?
--David


Yes, I can use Arduino without problems!!

What version of usbser.sys is on the computer where the programmer didn't work? You can check what version of this driver you have by looking in the “Details” tab of the “Properties” window for C:\Windows\System32\drivers\usbser.sys.


version 5.1.2600.5512 (xpsp.080413-2108)

Could you connect your programmer to the computer where it didn't work and look carefully in the Device Manager in the Ports (COM & LPT) list to see if there is anything wrong with the programmer's drivers? Try double clicking on them and tell me what the "Device Status" box says.


It seems all ok...

I noted one thing, in the Device Manager, under "COM and LTP", I can see only hardware phisically connected to my pc. And this is right. When I use Arduino, or Hyper Terminal, I can see another COM port (number 3), that is not listed in Device Manager / COM and LTP.

It's strange!!

Image

Uploaded with ImageShack.us
GianfrancoPa
 
Posts: 8
Joined: Thu Mar 17, 2011 3:55 am


Return to Other Pololu Products

Who is online

Users browsing this forum: No registered users and 2 guests

cron