Source: avrdude
Version: 5.10-2
Tags: patch

A commit needs to be cherry picked from upstream so avrdude works with
some arduinos. Arduino is now in debian testing, so this important for
that package.
This is the commit:
http://svn.savannah.gnu.org/viewvc?view=rev&root=avrdude&revision=940

--- trunk/avrdude/ser_posix.c   2010/03/05 08:28:42     939
+++ trunk/avrdude/ser_posix.c   2010/03/07 21:27:22     940
@@ -230,13 +230,13 @@
   }

   if (is_on) {
-    /* Clear DTR and RTS */
-    ctl &= ~(TIOCM_DTR | TIOCM_RTS);
-  }
-  else {
     /* Set DTR and RTS */
     ctl |= (TIOCM_DTR | TIOCM_RTS);
   }
+  else {
+    /* Clear DTR and RTS */
+    ctl &= ~(TIOCM_DTR | TIOCM_RTS);
+  }

   r = ioctl(fdp->ifd, TIOCMSET, &ctl);
   if (r < 0) {



Bug originally reported upstream:

http://savannah.nongnu.org/bugs/?29108
"The automatic reset that the "arduino" programmer type should perform
before uploading fails (for some boards) under Linux. The code
generates a rising edge, rather than the falling edge needed for the
reset to occur. This is because the ser_set_dtr_rts() function in
ser_posix.c is backwards, setting the lines when they should be
cleared and vice-versa. See patch #7100:
https://savannah.nongnu.org/patch/?7100  for a fix.

(The problem doesn't manifest in Mac OS X because the operating system
automatically lowers the lines when the serial port is opened,
generating a reset.)"

And debugged in Ubuntu:
https://bugs.launchpad.net/arduino/+bug/529444



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to