Go Down

Topic: Can't upload to Iteaduino Lite on Linux/debian (Read 5995 times) previous topic - next topic

pdeoliveira

Hello,
I'm trying to upload a sketch to an Iteaduino Lite but I get error messages from avrdude :

Code: [Select]
avrdude: Version 5.11, compiled on Sep  9 2011 at 16:00:41
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/home/pascal/work/arduino-1.0.5/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          : 9600
ioctl("TIOCMSET"): Broken pipe
ioctl("TIOCMSET"): Broken pipe
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [00]
avrdude: stk500_getsync(): not in sync: resp=0x00
ioctl("TIOCMSET"): Broken pipe


I'm on Linux/Debian Wheezy AMD64

Many thanks in advance for any help !

westfw

ooooh...  Those actually exist already?

ioctl("TIOCMSET") happens when the IDE tries to manipulate DTR to do the auto-reset.  Are you sure you have correct CP2102 drivers installed?  (note that this is a different USB/Serial chip than is used on any of the official Arduino boards.)

pdeoliveira

I think so. I've followed the procedure from Itead (they provide source for an updated driver, I compiled it and installed).
How can I check that I made it right ?
Do you think it can be related to the "programmer" setting  (I set it to AVRISP mkII) ?.


westfw

Quote
related to the "programmer" setting ?

It shouldn't be, unless you specifically selected "upload using programmer" (and it doesn't look like you did.)
OTOH, what shows up is a bit weird (9600bps?)
You should try turning on "verbose mode" for uploads in the Arduino preferences panel, and see if you get any more useful information.

Can you talk to /dev/ttyUSB0 with other communications SW ("serial monitor" form the IDE, or something like miniterm)?
The other possibility that seems somewhat likely is permissions/ownership of the device file.
(sorry, no wheezy, no Iteaduino, so I can't actually experiment...)

pdeoliveira

Thanks for your answer.
The output results in my first message are with verbose mode set up.
I've check my permissions, and I think it's OK (I'm in the dialout group).
I've also tried with the root account with the same result.
How can I check the communication with /dev/ttyUSB0 ? I've open the Serial Monitor but nothing show up in the screen. Can I enter a command and get an answer ?

Erni

My Iteaduino Lite worked out of the box.
I am on windows (Vista), if it can be of any help here is my verbose output:

Code: [Select]
avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "D:\arduino-1.0.4-windows\arduino-1.0.4\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM13
         Using Programmer              : arduino
         Overriding Baud Rate          : 19200
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Send: 0 [30]   [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
         AVR Part                      : ATMEGA88
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

pdeoliveira

Mine worked fine with Windows, too. Linux has always something special ;-)
But your verbose output may be useful, I'll compare it with what I get on Linux.
Thanks.

pdeoliveira

FIY, my problem is still there. I've made some progress, the error message comes from avrdude, in the ser_posix.c file and ser_set_dtr_rts function. I've double-checked permissions on ttyUSB0, recompiled avrdude (with some light changes in the code), reinstalled CP210x driver, etc, but without any success. I've also checked under Windows, and it worked so the board is working fine.
So I'm open to any idea !!!! thanks in advance.

pdeoliveira

I've upgraded my Debian to jessie (the current testing version) and all works fine, now.
I guess it was a problem related to driver version, but I'm not sure.
I hope this can help someone else.

Go Up