cancel
Showing results for 
Search instead for 
Did you mean: 

stm32F407ve internal Flash erase and program

Bingtanghulu
Associate II

hello,expertor

I wanted save lillte data about 2K,to stm32F407_ve internal flash.

but,i study demo about FLASH_EraseFlash,

it only have erased sectores.

F407 ve have 4(16K) sectores,1(64K) sector and 3(128K) sectores.

its waste for only 2K data.

have others ways?

why not have erase page(2K)?in HAL api fuctoiones

thanks

1 ACCEPTED SOLUTION

Accepted Solutions

It's a hardware limitation built on design choices.

You'll need to live with it and adapt. Use some of the 16KB sectors for storage, perhaps journalling to save time and wear from erase cycles. 

 

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

View solution in original post

2 REPLIES 2

It's a hardware limitation built on design choices.

You'll need to live with it and adapt. Use some of the 16KB sectors for storage, perhaps journalling to save time and wear from erase cycles. 

 

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

thank you very much👍

@ Tesla DeLorean🤝