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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Matthijs Kooijman-2
URL:
  <http://savannah.nongnu.org/bugs/?50338>

                 Summary: avrdude 6.3 fails to set configuration when opening
usb device
                 Project: AVR Downloader/UploaDEr
            Submitted by: None
            Submitted on: Fri 17 Feb 2017 03:58:37 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: Michael Platzer
        Originator Email: [hidden email]
             Open/Closed: Open
                 Release: 6.3
         Discussion Lock: Any
     Programmer hardware: ATMEL ICE
             Device type: ATXMEGA32A4U

    _______________________________________________________

Details:

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






    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
avrdude-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/avrdude-dev
Reply | Threaded
Open this post in threaded view
|

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

Matthijs Kooijman-2
Update of bug #50338 (project avrdude):

                  Status:                    None => Fixed                  

    _______________________________________________________

Follow-up Comment #1:

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

    _______________________________________________________

Reply to this item at:

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

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


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