avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [patch #4986] Programming smaller ranges of flash


From: Wim Lewis
Subject: [avrdude-dev] [patch #4986] Programming smaller ranges of flash
Date: Sun, 19 Mar 2006 20:39:11 -0800
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; OpenBSD 3.7) KHTML/3.5.0 (like Gecko)

URL:
  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4986>

                 Summary: Programming smaller ranges of flash
                 Project: AVR Downloader/UploaDEr
            Submitted by: wiml
            Submitted on: Sun 03/19/06 at 20:39
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open

    _______________________________________________________

Details:

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.






    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sun 03/19/06 at 20:39  Name: program-ranges.patch  Size: 45.01KB   By:
wiml
Patch against CVS
<http://savannah.nongnu.org/patch/download.php?item_id=4986&item_file_id=6065>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?func=detailitem&item_id=4986>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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