cancel
Showing results for 
Search instead for 
Did you mean: 

there any solution to erase one page of sector, without erasing whole sector? and write a data this page without affecting whole sector. i use stm32f410rb nucleo board

Lkhod.1
Associate II

i am using stm32f410RB Nucleo board i want to write and read some data in flash. In stm32f410RB 128 kbyte of flash and five sector, i want to write last sector this sector is 64k byte , but i want use only one page 2k byte,  how can I erase one page, and write new data in that page? Is there any solution to erase one page of sector, without erasing other pages of same sector? or whole sector.

so please help me

give example code

khodifad lalit

2 REPLIES 2
TDK
Guru

You cannot erase only part of one sector. It's all or nothing.

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

You can't.

You can journal your writing across the entire space, and then erase and start-over less frequently.

You can carve out some of the smaller sectors at the front, but not the first, so the size is more compatible with the data you want to be writing/erasing.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..