cancel
Showing results for 
Search instead for 
Did you mean: 

How to erase 20 bytes in flash not all sector?

k_arthur
Associate II
Posted on November 16, 2007 at 10:54

How to erase 20 bytes in flash not all sector?

3 REPLIES 3
k_arthur
Associate II
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?

jgoril
Associate II
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.

m_tibu
Associate II
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