Update of patch #7896 (project avrdude): Status: None => In Progress Assigned to: None => joerg_wunsch
_______________________________________________________ Follow-up Comment #1: Thanks for the patch, Kirill! I just tried it, using an ATmega32U2. Here are some remarks. First, if I don't have the target plugged in, I get: % ./avrdude -C avrdude.conf -c flip2 -p m32u2 -t avrdude: Error: No matching USB device found avrdude: AVR device initialized and ready to accept instructions Reading | | 0% 0.00savrdude: error reading signature data for part "ATmega32U2", rc=-1 avrdude: error reading signature data, rc=-1 avrdude done. Thank you. I think it should bail out there before proceeding to read the signature. Second, after plugging in the controller, I get (on FreeBSD): % ./avrdude -C avrdude.conf -c flip2 -p m32u2 -t avrdude: Warning: USB bDeviceClass = 255 (expected 0) avrdude: Warning: USB bDeviceSubClass = 1 (expected 0) avrdude: Warning: USB bInterfaceClass = 0 (expected 255) avrdude: Error: DFU_DNLOAD failed: Unknown error avrdude: Error: DFU status ERR_WRITE avrdude: Error: Failed to read 0x0004 bytes at 0x0000 avrdude: AVR device initialized and ready to accept instructions Reading | | 0% 0.00savrdude: error reading signature data for part "ATmega32U2", rc=-1 avrdude: error reading signature data, rc=-1 avrdude done. Thank you. So, at least for the USB megaAVR devices, something's still wrong. (Yes, I did add the USB PID of the ATmega32U2 to avrdude.conf before.) I think, all new files should get *your* copyright, with the current year, not anybody else's. For reference, here are the descriptors I can read out from the device: bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ff bDeviceSubClass = 0x0001 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0020 idVendor = 0x03eb idProduct = 0x2ff0 bcdDevice = 0x0000 iManufacturer = 0x0001 <ATMEL> iProduct = 0x0002 <ATmega32U2 DFU> iSerialNumber = 0x0000 <no string> bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0012 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 <no string> bmAttributes = 0x0080 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x0000 bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 <no string> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?7896> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/ _______________________________________________ avrdude-dev mailing list avrdude-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avrdude-dev