bugAVR Downloader/UploaDEr - Bugs: bug #18529, Low write speed with usbasp...


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

bug #18529: Low write speed with usbasp programmer (40 byte/s)

Submitted by:  None
Submitted on:  Fri 15 Dec 2006 05:42:38 PM UTC  
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  Thomas Fischl <fischl> Originator Name:  jim doe
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  None Programmer hardware: 
Device type: 

Sun 31 Dec 2006 03:33:57 PM UTC, comment #3: 

There was a bug in the USBasp firmware which caused timeouts on some systems. It is fixed in usbasp.2006-12-29 which you can download from http://www.fischl.de/usbasp/

Thomas Fischl <fischl>
Project MemberIn charge of this item.
Wed 27 Dec 2006 05:50:37 PM UTC, comment #2: 

I've downgraded to usbasp.2005-11-14.hex.
The write speed increased to 5.5 kbyte/s :)

jim doe <jimmy2mail2>
Mon 25 Dec 2006 05:18:29 PM UTC, comment #1: 

I suppose the problem is not directly an error in the AVRDUDE part. It seems that something with hardware, firmware, kernel or lib-usb goes wrong. Does this timeout also occur with older firmware versions like usbasp.2005-11-14?

There were some reports that long usb cable cause read or write failures. Perhaps you can test it with a short usb cable!

Thomas Fischl <fischl>
Project MemberIn charge of this item.
Fri 15 Dec 2006 05:42:38 PM UTC, original submission:  

Howdy folks,
I've just put together this usbasp programmer (mega8, xtal, and
 some cables).

I see good read speeds (6 kbyte/s), but the write speed seems to
be 'wrong' (40 byte/s).

I get this message in the kernel log every 5 seconds:

kernel: usb 2-2.2: avrdude timed out on ep0out len=200/200

This timeout does not cause any data problems! (Verify is OK)

I think something is wrong with the function usbasp_transmit in
the file usbasp.c. It seems that the call to usb_control_msg()
is the one that times out after 5000 ms.

I can increase the write speed by lowering the timeout value,
but I don't think thats the right way to do it.

I did the test on x86 linux 2.6.15 with an intel uhci and libusb-0.1.12.

The programmer runs the usbasp.2006-09-16.hex firmware.



No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by jimmy2mail2 (Posted a comment)
  • -email is unavailable- added by fischl (Posted a comment)
  • -email is unavailable- added by joerg_wunsch (Updated the item)

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

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-01-01 fischl Open/ClosedOpen => Closed
    2006-12-31 fischl StatusNone => Fixed
    2006-12-25 joerg_wunsch Assigned toNone => fischl

    Back to the top

    Powered by Savane 3.5