avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #35208] avrdude 5.11 on freebsd 8.2-STABLE does not r


From: anonymous
Subject: [avrdude-dev] [bug #35208] avrdude 5.11 on freebsd 8.2-STABLE does not reset Arduino Uno properly
Date: Sun, 01 Jan 2012 15:28:25 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.13) Gecko/20110410 Firefox/3.6.13

URL:
  <http://savannah.nongnu.org/bugs/?35208>

                 Summary: avrdude 5.11 on freebsd 8.2-STABLE does not reset
Arduino Uno properly
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Sun 01 Jan 2012 03:28:25 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: bob frazier
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

in order to program the Arduino Uno there is code in arduino.c that sets the
RTS+DTR lines to low, then high again.  Unfortunately in FreeBSD 8.2-STABLE
the RTS and/or DTR lines may not be in a 'high' state prior to this.  To
prevent this from becoming a problem, I recommend a simple patch that sets the
RTS+DTR to a high state prior to going to low again and back to a high state. 
The high to low transition is necessary to perform the reset properly, and the
patch guarantees it will happen at the right time.  It should be pointed out
that in earlier versions of FreeBSD (such as 7.2-STABLE), the libusb port was
being used and this issue did not show up.  So it appears that the code was
relying on both the RTS and DTR lines to be set high during a device open. 
Since this is (apparently) no longer the case, or is not RELIABLY the case,
adding the extra 2 lines of code ensures that the lines WILL be in a 'high'
state before doing a reset.

related information (and patch) in FreeBSD bug report:
http://www.freebsd.org/cgi/query-pr.cgi?pr=163749



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 01 Jan 2012 03:28:25 PM UTC  Name: patch-arduino.c  Size: 564B   By:
None
recommended patch for arduino.c applied to FreeBSD port
<http://savannah.nongnu.org/bugs/download.php?file_id=24717>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?35208>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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