Hello,
I'm trying to upload a sketch to an Iteaduino Lite but I get error messages from avrdude :
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
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.)
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) ?.
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...)
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 ?
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.
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.
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.