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

Submitter:  Hannes Weisbach <hweisbach>
Submitted:  Sat 04 Feb 2012 12:55:18 PM UTC
   
 
Category:  None Priority:  9 - Immediate
Status:  Ready For Test Privacy:  Public
Assigned to:  rliebscher Open/Closed:  Closed

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

Fixed in svn revision 1065

Rene Liebscher <rliebscher>
Group Member
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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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
  • -email is unavailable- added by rliebscher (Posted a comment)
  • -email is unavailable- added by hweisbach (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-03 rliebscher Open/ClosedOpen Closed
    2012-02-04 rliebscher StatusNone Ready For Test
        Assigned toNone rliebscher
    2012-02-04 hweisbach Attached File- Added avrftdi_page_write.patch, #24975

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code