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 01 Dec 2012 09:01:31 AM UTC  
Category:  None Priority:  5 - Normal
Status:  Done Privacy:  Public
Assigned to:  Joerg Wunsch <joerg_wunsch> Open/Closed:  Closed

Fri 17 Jan 2014 04:57:27 PM UTC, 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 ATmega*U* devices), so we
cover all FLIP/DFU-capable AVR devices now.

Joerg Wunsch <joerg_wunsch>
Project AdministratorIn charge of this item.
Tue 12 Mar 2013 01:58:19 PM UTC, 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 12 Mar 2013 10:58:14 AM UTC, 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 12 Mar 2013 07:33:17 AM UTC, 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 01 Dec 2012 09:01:31 AM UTC, 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 (57KiB - application/octet-stream)


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 kirill_levchenko (Submitted 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.


    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
    01/17/2014 joerg_wunsch StatusIn Progress => Done
        Open/ClosedOpen => Closed
    03/12/2013 joerg_wunsch StatusNone => In Progress
        Assigned toNone => joerg_wunsch
    12/01/2012 kirill_levchenko Attached File- => Added flip2.patch, #27009

    Back to the top

    Powered by Savane 3.3