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

 
 

You are not allowed to post comments on this tracker with your current authentification 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: NonePriority: 5 - Normal
Status: DonePrivacy: 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 ATmegaU 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

found->config->interface->altsetting->endpoint

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
signature.

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
device:

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 (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 17 Jan 2014 04:57:27 PM UTCjoerg_wunschStatusIn Progress=>Done
      Open/ClosedOpen=>Closed
    Tue 12 Mar 2013 07:33:17 AM UTCjoerg_wunschStatusNone=>In Progress
      Assigned toNone=>joerg_wunsch
    Sat 01 Dec 2012 09:01:31 AM UTCkirill_levchenkoAttached File-=>Added flip2.patch, #27009

    Back to the top


    Powered by Savane 3.1-cleanup