bugAVR Downloader/UploaDEr - Bugs: bug #50338, avrdude 6.3 fails to set...


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

bug #50338: avrdude 6.3 fails to set configuration when opening usb device

Submitter:  None
Submitted:  Fri 17 Feb 2017 03:58:37 PM UTC
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Michael Platzer
Originator Email:  -email is unavailable- Open/Closed:  Open
Release:  6.3 Programmer hardware:  ATMEL ICE
Device type:  ATXMEGA32A4U

Fri 17 Feb 2017 04:59:29 PM UTC, comment #1: 

This is a known issue.  Fixed in current code base, by using an
entirely different approach towards those "HID" devices.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 17 Feb 2017 03:58:37 PM UTC, original submission:  

avrdude 6.3 reports following error when using a ATMEL ICE programmer:

    [michael@tower ~]$ sudo avrdude -p x32a4u -c atmelice   
    [sudo] password for michael:
    avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy

    avrdude: jtag3_initialize(): part ATxmega32A4U has no JTAG interface
    avrdude: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

    avrdude: bad response to AVR sign-off command: 0xa0

    avrdude done.  Thank you.

The dmesg output reveals a conflict with the usbhid driver:

    [  957.783850] usb 2-1.4: new high-speed USB device number 4 using xhci_hcd
    [  957.920103] hid-generic 0003:03EB:2141.0006: hiddev0,hidraw3: USB HID v1.11 Device [Atmel Corp. Atmel-ICE CMSIS-DAP] on usb-0000:02:00.0-1.4/input0
    [  962.850262] usb 2-1.4: usbfs: interface 0 claimed by usbhid while 'avrdude' sets config #1
    [  962.954189] usb 2-1.4: reset high-speed USB device number 4 using xhci_hcd



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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 joerg_wunsch (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-02-17 joerg_wunsch StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code