patchAVR Downloader/UploaDEr - Patches: patch #4986, Programming smaller ranges of flash


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

patch #4986: Programming smaller ranges of flash

Submitted by:  Wim Lewis <wiml>
Submitted on:  Mon 20 Mar 2006 04:39:10 AM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Closed

Fri 13 Sep 2013 02:48:08 PM UTC, comment #2:

Partial programming has been in SVN for quite a while now.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri 01 Sep 2006 11:20:43 AM UTC, comment #1:

Hmm, is this essentially the same idea as patch #5038?

Joerg Wunsch <joerg_wunsch>
Project Administrator
Mon 20 Mar 2006 04:39:10 AM UTC, original submission:

Here is most of a patch to make avrdude able to program only a part of the flash (or, I suppose, other memories). When reading a hex file, for example, it keeps track of the range of addresses which have actually appeared in the hex file's data, and it doesn't try to write outside that range.

For lots of things this makes no difference in avrdude's behavior, but it makes avrdude a lot faster when using a bitbang mode to install a boot loader at the upper end of flash.

The patch touches a lot of files, but the changes are pretty simple:
AVRMEM gets two new members, tracking the start and end of the
touched range.
Many functions that used to take a 'length' parameter now take
a 'start' parameter as well.
Many other functions now take neither parameter, but get the info
from the appropriate AVRMEM structure.

Unfortunately I can't completely finish off this patch since it touches the API for each programmer, and I have no way to test my changes there. I've placed #warnings in the code where someone might want to look. The bit-bang programmer is the one I've used and tested.

Wim Lewis <wiml>


Attached Files
file #9681:  program-ranges.patch added by wiml (45KiB - text/x-diff - Patch against CVS)


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
    Fri 13 Sep 2013 02:48:08 PM UTCjoerg_wunschStatusNeed Info=>None
    Fri 01 Sep 2006 11:20:43 AM UTCjoerg_wunschStatusNone=>Need Info
    Mon 20 Mar 2006 04:39:10 AM UTCwimlAttached File-=>Added program-ranges.patch, #6065

    Back to the top

    Powered by Savane 3.1-cleanup1