patchAVR Downloader/UploaDEr - Patches: patch #7717, avrftdi_flash_write is broken


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

patch #7717: avrftdi_flash_write is broken

Submitted by:  Hannes Weisbach <hweisbach>
Submitted on:  Sat 04 Feb 2012 12:55:18 PM UTC  
Category: NonePriority: 9 - Immediate
Status: Ready For TestPrivacy: Public
Assigned to: Rene Liebscher <rliebscher>Open/Closed: Closed

Sat 04 Feb 2012 04:44:14 PM UTC, comment #1:

Fixed in svn revision 1065

Rene Liebscher <rliebscher>
Project MemberIn charge of this item.
Sat 04 Feb 2012 12:55:18 PM UTC, original submission:

When writing to flash avrftdi uses an intermediate buffer to construct the data stream which gets send to the AVR. To construct that stream, a pointer to the data to be programmed is maintained by avrftdi and is initialised to m->buf by avrftdi_flash_write() (Which programs a flash page in the AVR).
So every page is programmed with the first page_size bytes of the memory image.
The correct initialisation should be: &m->buf[addr].

Patch is attached.

Hannes Weisbach <hweisbach>
Project Member


Attached Files
file #24975:  avrftdi_page_write.patch added by hweisbach (422B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by rliebscher (Posted a comment)
  • -unavailable- added by hweisbach (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 Sep 2013 08:01:07 PM UTCrliebscherOpen/ClosedOpen=>Closed
    Sat 04 Feb 2012 04:44:14 PM UTCrliebscherStatusNone=>Ready For Test
      Assigned toNone=>rliebscher
    Sat 04 Feb 2012 12:55:18 PM UTChweisbachAttached File-=>Added avrftdi_page_write.patch, #24975

    Back to the top

    Powered by Savane 3.1-cleanup1