cancel
Showing results for 
Search instead for 
Did you mean: 

STM32g070RB internal flash memory

vignesh1
Associate III

I am currently working stm32  issue with internal flash memory is that it requires erasing an entire page before rewrite  data .if i modify specific address data that page it demands erase of entire page.It affect other data of that page . so give solution for that what are other possibility without affect other data of that page ? 

 
 
 
 
3 REPLIES 3
vignesh1
Associate III

can u help above i asked question??

AScha.3
Chief III

You have to erase always a "page" .

To preserve some data in a page, copy it to another page + add new data here. Erase old page.

Next time you want do same, copy to "old" page new dataset , now this is your "new". Erase other page.

And so on...

Or you copy the data you want to keep, to ram area, erase page, copy back from ram , add your new data. (free ram.)

If you feel a post has answered your question, please click "Accept as Solution".
vignesh1
Associate III

thanks for ur valuble reply