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

 
 

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

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

Submitted by:  None
Submitted on:  Thu 22 Jun 2006 03:01:12 AM UTC  
 
Category: NonePriority: 5 - Normal
Status: Wont DoPrivacy: Public
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Email: -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>
Project AdministratorIn charge of this item.
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

 

Attached Files
file #10235:  avr910.c.diff.txt added by None (4kB - 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
  • -unavailable- added by joerg_wunsch (Posted a comment)
  •  

    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
    Thu 15 Sep 2011 04:15:50 PM UTCjoerg_wunschStatusNone=>Wont Do
      Assigned toNone=>joerg_wunsch
      Open/ClosedOpen=>Closed
    Thu 22 Jun 2006 03:01:12 AM UTCNoneAttached File-=>Added avr910.c.diff.txt, #10235

    Back to the top


    Powered by Savane 3.1-cleanup