avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [patch #7720] Bug in EEPROM write


From: Joerg Wunsch
Subject: [avrdude-dev] [patch #7720] Bug in EEPROM write
Date: Sun, 05 Feb 2012 22:25:12 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.24) Gecko/20111111 Firefox/3.6.24

Follow-up Comment #1, patch #7720 (project avrdude):

> Do get the pgm->paged_write and pgm->paged_load functions
> get called for every page?

As you've already guessed, this recently changed.

The reason for this is that AVRDUDE now properly keeps track of which
data actually came from an input file.  With respect to the page
programming algorithm, this means the upper layer first checks whether
the page in question actually contains data that came from an input
file, and only calls the backend for "interesting" data.  Maintaining
the previous scheme would have duplicated the check for interesting
data in each backend driver, as opposed to implement that check only
once in the next higher layer.

> What is the reason to pass page_size as own parameter? How it is
> different from AVRMEM->page_size?

I can't tell you for sure.  There's a lot of historical ballast around
here, in particular in the EEPROM area.  Sometimes, EEPROM is handled
as being paged, sometimes it isn't even though that particular
device's EEPROM could be treated as paged.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7720>

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




reply via email to

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