patchAVR Downloader/UploaDEr - Patches: patch #7896, DFU FLIPv2 programming support


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

patch #7896: DFU FLIPv2 programming support

Submitted by:  Kirill Levchenko <kirill_levchenko>
Submitted on:  Sat Dec 1 09:01:31 2012  
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Open/Closed: Closed

Fri Jan 17 16:57:27 2014, comment #4:

Done (with a few minor changes), thanks!

I also took this occasion to clone the FLIPv2 implementation
into a FLIPv1 one (for AT90USB* and ATmegaU devices), so we
cover all FLIP/DFU-capable AVR devices now.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue Mar 12 13:58:19 2013, comment #3:

It stops at that point under Linux since it segfaults. This
is because there are zero endpoint descriptors present, so


equals 0 here:

If I conditionalize that memcpy() on ...->endpoint being != 0,
the Linux behaviour resembles the one under FreeBSD:

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue Mar 12 10:58:14 2013, comment #2:

I just tested it under Linux. Result:

At that point, it just exits.

I guess it needs a bit of further debugging before we can
commit it.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue Mar 12 07:33:17 2013, 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:

I think it should bail out there before proceeding to read the

Second, after plugging in the controller, I get (on FreeBSD):

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

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Sat Dec 1 09:01:31 2012, original submission:

The attached patch adds FLIPv2 (AVR4023) suppport, allowing EEPROM and Application Flash to be programmed on USB-capable XMEGA parts that have a pre-installed bootloader.

Tested with XMEGA128A3U and XMEGA128A4U.

Kirill Levchenko <kirill_levchenko>


Attached Files
file #27009:  flip2.patch added by kirill_levchenko (57kB - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by kirill_levchenko (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Jan 17 16:57:27 2014joerg_wunschStatusIn Progress=>Done
    Tue Mar 12 07:33:17 2013joerg_wunschStatusNone=>In Progress
      Assigned toNone=>joerg_wunsch
    Sat Dec 1 09:01:31 2012kirill_levchenkoAttached File-=>Added flip2.patch, #27009

    Back to the top

    Powered by Savane 3.1-cleanup1