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: [email protected]
             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/


_______________________________________________
avrdude-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev

Reply via email to