Skip to main content
Associate II
June 25, 2024
Solved

stm32F407ve internal Flash erase and program

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

This topic has been closed for replies.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 25, 2024

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..

2 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
June 25, 2024

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate II
June 25, 2024

thank you very much:thumbs_up:

@ Tesla DeLorean:handshake: