ubuntu1104+arduino22+duemilanove can't upload

hi,i have a duemilanove,i use ubuntu 1104+arduino22 can't upload.
the duemilanove on windows is work.
display is:

/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/ttyUSB0 -b57600 -D -Uflash:w:/tmp/build2371454917671007761.tmp/Blink.cpp.hex:i 

avrdude: Version 5.11.1, compiled on Oct 18 2011 at 21:17:35
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/usr/share/arduino/hardware/tools/avrdude.conf"
         User configuration file is "/root/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyUSB0
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.

what wrong? THX~

Hi,

  1. please read troubleshooting guide, search in it for linux.

  2. Did it work before using Ubuntu?

  3. Try running arduino as root.

THX~
I read Arduino Playground - Ubuntu and do it.
with windows it is worked.
and i use root.
i send some char to /dev/ttyUSB0,the rxtx led is blink.

Make sure you have the correct board and serial port selected in the tools menu.

Plug arduino in your usb port and run the dmesg|tail command in a terminal. post the result.

I make sure the board and port is corrent.
dmesg |tail display:

[ 9473.923373] USB Serial support registered for FTDI USB Serial Device
[ 9473.923536] ftdi_sio 3-2.2:1.0: FTDI USB Serial Device converter detected
[ 9473.923664] usb 3-2.2: Detected FT232RL
[ 9473.923669] usb 3-2.2: Number of endpoints 2
[ 9473.923673] usb 3-2.2: Endpoint 1 MaxPacketSize 64
[ 9473.923678] usb 3-2.2: Endpoint 2 MaxPacketSize 64
[ 9473.923682] usb 3-2.2: Setting MaxPacketSize 64
[ 9473.926420] usb 3-2.2: FTDI USB Serial Device converter now attached to ttyUSB0
[ 9473.928517] usbcore: registered new interface driver ftdi_sio
[ 9473.928524] ftdi_sio: v1.6.0:USB FTDI Serial Converters Driver

I was comparing the outputs. I don't know if it matters, but your version of avrdude is different then mine. I am also using arduino 0022.

/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega328p -carduino -P/dev/ttyUSB0 -b115200 -D -Uflash:w:/tmp/build2103545438631500123.tmp/Blink.cpp.hex:i

avrdude: Version 5.10, compiled on Jun 29 2010 at 21:09:48
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

*** Anybody using avrdude 5.11.1, Ubuntu 11.04 and arduino-0022 ?

Either auto-reset doesn't work for some reason, or the baud rate is wrong.

BTW, I use avrdude 5.11.1 on linux as well and it works great.

Try this by hand (terminal)

avrdude -c arduino -P /dev/ttyUSB0 -p atmega328p -vvvvv -b <baud_speed>

Replace <baud_speed> with some common values: 19200, 57600, 115200

Mine gives the same error if I use 57600 for the baud rate, works fine if I use 115200.

Hi,
I think I'm having the same problem:

rodolfo@ubuntu:~$ avrdude -c arduino -P /dev/ttyACM0 -p atmega328p -vvvvv -b 115200

avrdude: Version 5.10, compiled on Jun 29 2010 at 03:44:14
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/rodolfo/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

Must I try with other baud rates?

@rlbeibner:

Please get version 5.11.1 and try again. If my memory serves me right, there were some inconsistencies (linux only) in 5.10 regarding how to correctly auto-reset an arduino. If you can't get a binary, get the sources from savannah and just compile it. I didn't have any trouble with that.

If you use an UNO, 115200 should work (optiboot). For older boards 19200 or 57600 is the correct speed.

@madworm
I try 19200, 57600, 115200. but not work all.
use 57600 with windows is worked.
what is 5.11.1?

I believe Madworm is referring to the version 5.11.1 of avrdude, which I believe your already using according to your first post.

I would try the loop back test
http://arduino.cc/forum/index.php/topic,73748.0.html

How did you install arduino?

yes,my avrdude is version 5.11.1,and loop test is no problem.
i try apt-get install arduino, and download nearly deb file install it.
they can't work all.

Where did you get avrdude 5.11.1 for natty? I couldn't find it. I tested this one ( Ubuntu – Error - 5.11 ) and it works on my machine, although its openSUSE tumbleweed :wink:

i try apt-get install avrdude,it can't work.
and test Ubuntu – Error .can't work~ :slight_smile:

Well that is really strange.

Your hardware works (on winblows), avrdude should work (works on my machine)... all that is left is possibly some strangeness with the ftdi driver. Could you test a 11.10 live CD + avrdude (from usb stick) ?

madworm:
Please get version 5.11.1 and try again. . . .

madworm:

I've just got and installed the 5.11.1, but the error msg is the same:

avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

I am using ( or trying to use =( ) a duemilanove w/ ATmega328 ...

I' m not sure if my USB port is USB2.0 or USB1.0 (may be is there the problem?? )

I just download and compiled avrdude 5.11.1. Compiled and talking (did not install) to my arduino just fine.

@lisux
I installed arduino (Ubuntu 11.10, sudo apt-get install arduino) I got avrdude version 5.10 is my /usr/bin directory. So I am wondering how your is version 5.11.1?
@lisux
What type of computer are you on? Not the software the hardware.

@rleibner
If you have more then one avrdude installed. How are you making sure you are using the correct one? The command "which avrdude" will tell you the location of the first one the system finds in it path.

Hi, mrtaylor,

mrtaylor:
@rleibner
If you have more then one avrdude installed. How are you making sure you are using the correct one?

I'm sure I'm using the 5.11 version because the msg that avrdude reports:

rodolfo@ubuntu:~$  avrdude -c arduino -P /dev/ttyACM0 -p atmega328p -vvvvv -b 115200

avrdude: Version 5.11, compiled on Oct 17 2011 at 10:38:46
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/rodolfo/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/ttyACM0
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: Send: 0 [30]   [20] 
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done.  Thank you.

I will try to run the arduino 0022 under a Win platform, in order to rule out any hardware problem in the I/O board ...