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

Submitter:  Wim Lewis <wiml>
Submitted:  Mon 20 Mar 2006 04:39:10 AM UTC
   
 
Category:  None Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/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>
Group 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>
Group 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>

 

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

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
  • -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
    2013-09-13 joerg_wunsch StatusNeed Info None
        Open/ClosedOpen Closed
    2006-09-01 joerg_wunsch StatusNone Need Info
    2006-03-20 wiml Attached File- Added program-ranges.patch, #6065

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code