This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I erase a byte in Flash for P89C66x without Block Erase?

Kindly help..

I am using the P89C662 and requires erasing of the Flash which I used a portion to store a lookup table.

Th problem is I can only erase in Blocks of 8KBytes or 16KBytes using IAP.

Is there a way to erase only certain bytes in Flash using IAP??

Please advise....

Parents Reply Children
  • Is there a way to erase only certain bytes in Flash using IAP??
    NO, regardless of IAP or not, it's hardware. By definition Flash can only be page erased regardless of brand and use.

    Some Flashes incorporate a RAM so that it seems that you erase and write just one byte. Many have been caught on that one because a one byte write is one less endurance count of the page so once you have updated (one by one) 256 bytes 400 times the 10000 endurance is reached.

    Erik

  • Thank you for the kind advice.

    Looks like I have to change to a P89C664 or a P89C668 for 64KBytes Flash.

    Once again, thank you for the prompt reply.