avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] arduino upload problem


From: Renato
Subject: Re: [avr-chat] arduino upload problem
Date: Tue, 21 Sep 2010 13:59:47 +0200

On Tue, 21 Sep 2010 12:06:52 +0200
Danilo Uccelli <address@hidden> wrote:

> 2010/9/21 Renato <address@hidden>
> >
> > Hi, I'm trying to upload a sketch to an Arduino Duemilanove with
> > avrdude but I'm getting the error pasted below. I really don't have
> > a clue of the avrdude command syntax, it was generated by the
> > Arduino IDE - sorry for that. But I searched a lot for this error
> > and couldn't find an answer. The board is connected at /dev/ttuUSB0.
> >
> > I'm on Archlinux, up to date. The uploading works ok with other
> > systems so I think it isn't a hardware problem.
> >
> > Also, this command returns nothing, so the board is not being used
> > by another process:
> > sudo lsof |grep ttyUSB
> >
> > Any help is very much appreciated.
> >
> > renato
> >
> > $ avrdude
> > -C/home/renato/Desktop/arduino-0019/hardware/tools/avrdude.conf -v
> > -v -v -v -patmega328p -cstk500v1 -P/dev/ttyUSB0 -b57600 -D
> > -Uflash:w:/tmp/build7961644783492409942.tmp/blink.cpp.hex:i
> > avrdude: Version 5.10, compiled on Apr  3 2010 at 18:48:10
> > Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
> > Copyright (c) 2007-2009 Joerg Wunsch
> >
> >         System wide configuration file is
> > "/home/renato/Desktop/arduino-0019/hardware/tools/avrdude.conf"
> > User configuration file is "/home/renato/.avrduderc" User
> > configuration file does not exist or is not a regular file, skipping
> >
> >         Using Port                    : /dev/ttyUSB0
> >         Using Programmer              : stk500v1
> >         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.
> >
> 
> Hi,
> Have you tried to use sudo in front of your command ?
> 

hmm, strange: an hour ago adding sudo worked - the upload was
successful and immediately after I tried reuploading as a user and it
also worked. Now neither will work.
I've allready been experiencing this random behaviour before with this
problem, sometimes it will work, most of the time it won't. I still
haven't found any corelation with things like rebooting, other
processes that use USB (and anyway the lsof command should exclude
this, right?) etc.

I do have permissions set ok:

$ ls -lh /dev/ttyUSB0
crw-rw---- 1 root uucp 188, 0 Sep 21 13:53 /dev/ttyUSB0
$ groups renato |grep uucp
adm tty wheel ftp mail http games network video audio optical storage
scanner power users dbus hal pulse-access pulse-rt camera lpadmin uucp
vboxusers input renato


renato




reply via email to

[Prev in Thread] Current Thread [Next in Thread]