bugAVR Downloader/UploaDEr - Bugs: bug #22271, usb_reset in usb_libusb.c not...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #22271: usb_reset in usb_libusb.c not necessary in FreeBSD 6.x

Submitted by:  None
Submitted on:  Sat 09 Feb 2008 02:49:33 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: David Hoerl <dhoerl>Originator Name: Nick Hibma
Originator Email: -unavailable-Open/Closed: Closed
Release: NoneProgrammer hardware: 
Device type: 

Fri 06 Nov 2009 09:37:19 PM UTC, comment #5:

In my testing, the usb_reset() is necessary on Mac OS X (10.6 Snow Leopard). Otherwise, the upload process will stall for about 25 seconds on the second and subsequent attempts. I suggest that revision 873 be reverted.

David A. Mellis <mellis>
Thu 22 Oct 2009 07:51:14 PM UTC, comment #4:

The proper way to declare OSX is with "defined(_APPLE_) && defined(_MACH_)" which was added to prevent usb reset.

David Hoerl <dhoerl>In charge of this item.
Thu 22 Oct 2009 07:13:30 PM UTC, comment #3:

Reopened for the MacOS X issue.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Wed 21 Oct 2009 09:29:29 PM UTC, comment #2:

I had the same problem with the AVRISP mkII freezing when trying to use it more than once, but on Mac OSX Snow Leopard.

I removed the #if defined(_FreeBSD_) ... #endif around the call to usb_reset and it fixed the problem.

Is there some way this could be modified to automatically happen on OSX as well as FreeBSD?

Rob O'Dwyer <robbles>
Tue 17 Feb 2009 05:14:07 PM UTC, comment #1:

Implemented as a FreeBSD-only change. On Linux, the usb_reset()
indeed allows to reconnect to the device immediately, whereas
one has to wait for ~ 2 s without the call to usb_reset() there.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Sat 09 Feb 2008 02:49:33 PM UTC, original submission:

--- usb_libusb.c~ 2008-02-09 15:30:18.000000000 +0100
+++ usb_libusb.c 2008-02-09 15:30:22.000000000 +0100
@@ -211,7 +211,7 @@
* Without this reset, the AVRISP mkII seems to stall the second
* time we try to connect to it.
*/
- usb_reset(udev);
+ //usb_reset(udev);

usb_close(udev);
}

The usb_reset actually wedges the device while not necessary on FreeBSD (usb_reset is not yet implemented in FreeBSD, but will be soonish when I get round to committing the patch).

At the moment on FreeBSD usb_reset doesn't do anything and thereefore can be safely left out. The programmer continues to work fine during multiple commands like:

sudo avrdude -P usb -c avrispmkII -p m168 -U \
flash:w:auxboard.hex:i

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mellis (Posted a comment)
  • -unavailable- added by dhoerl (Posted a comment)
  • -unavailable- added by robbles (Posted a comment)
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 22 Oct 2009 07:52:23 PM UTCdhoerlStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Thu 22 Oct 2009 07:13:30 PM UTCjoerg_wunschAssigned tojoerg_wunsch=>dhoerl
      StatusFixed=>In Progress
      Open/ClosedClosed=>Open
    Tue 17 Feb 2009 05:14:07 PM UTCjoerg_wunschStatusNone=>Fixed
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1