avrdude-dev
[Top][All Lists]
Advanced

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

[avrdude-dev] [bug #30061] stk500 skips writing blocks of 0xff, even if


From: Joerg Wunsch
Subject: [avrdude-dev] [bug #30061] stk500 skips writing blocks of 0xff, even if the part/page wasn't erased
Date: Mon, 07 Jun 2010 04:16:22 +0000
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.1.9) Gecko/20100331 Firefox/3.5.9

Follow-up Comment #1, bug #30061 (project avrdude):

I'm afraid you have to elaborate a little more:

This is standard EPROM behaviour, you can only write a '1'
bit by erasing the memory.  A normal write cycle can only
write a '0' bit, or it does not change the cell if it is
trying to write a '1' bit.  Thus, writing pages that consist
of only 0xFF is essentially a no-op, and can always be
skipped.  Obviously, if the page does have prior contents,
and the file has 0xFF, without erasing it, this will result
in a verification error if verification is enabled.

For the STK500 algorithm, there is no option to page erase
the memory, only a device erase is supported.  With the
current AVR architecture, only bootloaders could perform a
page erase, but as there is no corresponding STK500 command,
AVRDUDE has no means to tell a bootloader that a page erase
is required.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?30061>

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




reply via email to

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