avrdude-dev
[Top][All Lists]
Advanced

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

RE: [avrdude-dev] program error?


From: Sander Pool
Subject: RE: [avrdude-dev] program error?
Date: Sun, 23 Mar 2003 16:26:41 -0800


> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden
> Behalf Of Brian Dean
> Just to make sure I understand ... you issue avrdude as so:
>
>       avrdude -p m128 -e -i foo.hex
>
> And it then programs OK, i.e., you don't get the verify error?

Yes, that is correct. If avrdude doesn't lock up it will work OK.

>
> If so, then avrdude is working correctly - since after programming it
> reads out the entirety of the flash, and compares the results with
> what it just uploaded and they matched.

Even without the -V flag?

>
> Just as an aside, '-e' is always necessary when you are updating the
> flash, since the flash does not perform an auto-erase for each byte
> programmed (the eeprom does, but not the flash).  Thus, programming
> flash can only turn bits off, and if a bit is currently a '0', but
> needs to become a '1', the subsequent verify will fail.  Doing a chip
> erase sets the whole flash to 0xff, which is why '-e' is needed before
> loading in a new program.

So should it maybe be the default behavior then with an option to turn it
off?

Thanks,

        Sander





reply via email to

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