Skip to main content
k_arthur
Associate III
November 16, 2007
Question

How to erase 20 bytes in flash not all sector?

  • November 16, 2007
  • 3 replies
  • 939 views
Posted on November 16, 2007 at 10:54

How to erase 20 bytes in flash not all sector?

This topic has been closed for replies.

3 replies

jgoril
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:46

It is not possible to erase single byte(s) for STR9 devices flash memory. You can erase whole sector only.

k_arthur
k_arthurAuthor
Associate III
May 17, 2011
Posted on May 17, 2011 at 09:46

Hi all.

I need to erase only 20 bytes in flash memory.In STR9 Flash Programming Manual no word about it. I tried to write (erase) twenty - 0xFF bytes and after that to write needed bytes. It not work. How to do it?

m_tibu
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:46

Just to puntualize,

it is not possible to erase part of sector in a flash memory in general.

Suggestion:

- Copy all the block in RAM and then erase and re-program, coping back whole sector, kepping blank the 20 bytes

Marco