Programmer is not responding

I am using Ubuntu 9.10 and installed arduino soft. using PPA released bu arduino team.

I am using Duemilanove 328. When i try to upload any code, the ide gives following error. "avrdude: stk_500_recv(): programmer is not responding"

Please guide me. I have selected the right board and have selected /dev/ttyUSB0 in serial port.

Some models have to be reset immediately prior to uploading, some don’t because they have auto-reset circuits built in.

Essentially the bootloader only checks for an incoming signal when booting so it must be in the process of booting while the computer is attempting to connect.

The way I did it (before I discovered that my Seeduino had an auto/manual switch) was to hold down reset, click upload, and then release reset. Though you could probably just click upload and hit reset if you were quick. Holding down reset is probably not good (I’ve noticed that it sometimes spontaneously switches devices if I hold down reset. goes from /dev/ttyUSB0 to /dev/ttyUSB1).

But I can program my board from windows 7 without any trouble. I think there is some problem with linux software

I don't have any problem with the linux software (other than that switching port thing, but that's not a big deal). Perhaps it's your installation? Try purging (not just remove) and reinstalling.

The version I've got installed is 0018+dfsg-0ubuntu1~ppa3

Also, try resetting the board prior to uploading anyway, see if that makes any difference.

When you plug the board in does it show up in dmesg? Here's what happened when I switched it off and then on again (looks like it had migrated over to ttyUSB2 at some point, weird):

[367040.499522] usb 6-3: USB disconnect, address 18
[367040.499797] ftdi_sio ttyUSB2: FTDI USB Serial Device converter now disconnected from ttyUSB2
[367040.499824] ftdi_sio 6-3:1.0: device disconnected
[367040.990900] usb 6-3: new full speed USB device using ohci_hcd and address 19
[367041.193182] usb 6-3: configuration #1 chosen from 1 choice
[367041.199098] ftdi_sio 6-3:1.0: FTDI USB Serial Device converter detected
[367041.199150] usb 6-3: Detected FT232RL
[367041.199155] usb 6-3: Number of endpoints 2
[367041.199160] usb 6-3: Endpoint 1 MaxPacketSize 64
[367041.199165] usb 6-3: Endpoint 2 MaxPacketSize 64
[367041.199169] usb 6-3: Setting MaxPacketSize 64
[367041.201757] usb 6-3: FTDI USB Serial Device converter now attached to ttyUSB0

That migrating thing has to do with the USB-serial driver and shouldn't have anything to do with the Arduino software.

I tried reinstalling but not working at all.

My dmesg shows the following

usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 4867.790160] usb 7-1: USB disconnect, address 4
[ 4867.790411] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 4867.790434] ftdi_sio 7-1:1.0: device disconnected
[ 4872.080999] usb 7-1: new full speed USB device using uhci_hcd and address 5
[ 4872.283217] usb 7-1: configuration #1 chosen from 1 choice
[ 4872.290197] ftdi_sio 7-1:1.0: FTDI USB Serial Device converter detected
[ 4872.290237] usb 7-1: Detected FT232RL
[ 4872.290241] usb 7-1: Number of endpoints 2
[ 4872.290245] usb 7-1: Endpoint 1 MaxPacketSize 64
[ 4872.290248] usb 7-1: Endpoint 2 MaxPacketSize 64
[ 4872.290251] usb 7-1: Setting MaxPacketSize 64
[ 4872.291226] usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 5495.288277] npviewer.bin[4087]: segfault at ff999ea8 ip 00000000ff999ea8 sp 00000000ffa9295c error 14
[ 6286.540145] usb 7-1: USB disconnect, address 5
[ 6286.540393] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 6286.540416] ftdi_sio 7-1:1.0: device disconnected
[ 6510.280098] usb 7-1: new full speed USB device using uhci_hcd and address 6
[ 6510.482250] usb 7-1: configuration #1 chosen from 1 choice
[ 6510.489203] ftdi_sio 7-1:1.0: FTDI USB Serial Device converter detected
[ 6510.489244] usb 7-1: Detected FT232RL
[ 6510.489247] usb 7-1: Number of endpoints 2
[ 6510.489251] usb 7-1: Endpoint 1 MaxPacketSize 64
[ 6510.489254] usb 7-1: Endpoint 2 MaxPacketSize 64
[ 6510.489257] usb 7-1: Setting MaxPacketSize 64
[ 6510.490264] usb 7-1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 6869.964533] npviewer.bin[4598]: segfault at ff999ea8 ip 00000000ff999ea8 sp 00000000ffc921ec error 14
[ 6989.622998] npviewer.bin[4711]: segfault at ff999ea8 ip 00000000ff999ea8 sp 00000000ffca02cc error 14
[ 7373.870097] ACPI: EC: missing confirmations, switch off interrupt mode.
[ 7374.410085] ACPI Exception: AE_TIME, Returned by Handler for [EmbeddedControl] 20090521 evregion-424
[ 7374.410106] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.BAT0._BST] (Node ffff8800b4046fa0), AE_TIME
[ 7374.410179] ACPI Exception: AE_TIME, Evaluating _BST 20090521 battery-385
[ 7853.040160] usb 7-1: USB disconnect, address 6
[ 7853.040409] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 7853.040431] ftdi_sio 7-1:1.0: device disconnected
[10349.721768] npviewer.bin[4761]: segfault at ff999ea8 ip 00000000ff999ea8 sp 00000000ffeed2cc error 14

I am using the same version as yours... Everything was working fine before few days but i think, the problem arose after new kernel update from ubuntu. Is it possible?

The last few lines in your dmesg shows it got disconnected:

[ 7853.040160] usb 7-1: USB disconnect, address 6
[ 7853.040409] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[ 7853.040431] ftdi_sio 7-1:1.0: device disconnected

If you didn't unplug it that could be a problem. (maybe a loose cable?)

If resetting it while uploading didn't work then I'm not sure what the problem could be. Maybe try to figure out how to manually upload it and see if you can get more verbose error messages.