avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avrdude-dev] [patch #7717] avrftdi_flash_write is broken


From: Hannes Weisbach
Subject: [avrdude-dev] [patch #7717] avrftdi_flash_write is broken
Date: Sat, 04 Feb 2012 12:55:19 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7

URL:
  <http://savannah.nongnu.org/patch/?7717>

                 Summary: avrftdi_flash_write is broken
                 Project: AVR Downloader/UploaDEr
            Submitted by: hweisbach
            Submitted on: Sa 04 Feb 2012 12:55:18 GMT
                Category: None
                Priority: 9 - Immediate
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

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.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sa 04 Feb 2012 12:55:18 GMT  Name: avrftdi_page_write.patch  Size: 422B 
 By: hweisbach

<http://savannah.nongnu.org/patch/download.php?file_id=24975>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7717>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]