patchAVR Downloader/UploaDEr - Patches: patch #5198, skip programming of 0xff-only...

 
 

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

patch #5198: skip programming of 0xff-only pages, simple, local patch (avr910 only)

Submitter:  None
Submitted:  Thu 22 Jun 2006 03:01:12 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  Wont Do Privacy:  Public
Assigned to:  joerg_wunsch Originator Email:  -email is unavailable-
Open/Closed:  Closed

Thu 15 Sep 2011 04:15:50 PM UTC, comment #1: 

This is obviated by the recent introduction of memory
region tagging: only those memory regions where actual content
has been read for from a file are written to now.

Joerg Wunsch <joerg_wunsch>
Group administrator
Thu 22 Jun 2006 03:01:12 AM UTC, original submission:  

This patch does not change verification or eeprom writing, and must be implemented for each programmer type.

It only replaces one function (per pgmr type), and leaves all prototypes and grammars alone, thus implementing it seems less involved than some other approaches posted here. (read: it was a quick shot before i checked the patches available here).

Details

The function avr910_paged_write_flash is split up into three functions:

avr910_chk_buffer_page() scans a page-sized region of the memory buffer and reports whether it contains any values other than 0xFF. (this function is not really avr910 specific).

avr910_write_flash_page() writes (at most) one single page of flash.

avr910_paged_write_flash() - the replacement for the original function - uses the other functions now, and merely loops pagewise over the memory buffer.

As a side effect, the structure of avr910_paged_write_flash() became simpler.

I finally did the diff file by hand, because i  wanted to keep the patch human-readable (not chopped up into small chunks) - it's just one hunk.

Anonymous

 

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

Attached Files
file #10235:  avr910.c.diff.txt added by None (4KiB - text/plain - skip programming of 0xff-only pages, simple, local patch (avr910 only))

 

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)
  •  

    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
    2011-09-15 joerg_wunsch StatusNone Wont Do
        Assigned toNone joerg_wunsch
        Open/ClosedOpen Closed
    2006-06-22 None Attached File- Added avr910.c.diff.txt, #10235

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code