Skip to main content
Explorer II
June 25, 2024
Solved

stm32F407ve internal Flash erase and program

  • June 25, 2024
  • 2 replies
  • 858 views

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.
    Best answer by Tesla DeLorean

    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. 

     

    2 replies

    Graduate II
    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. 

     

    Explorer II
    June 25, 2024

    thank you very much:thumbs_up:

    @ Tesla DeLorean:handshake: