flash memory erasing - C

-6

I saw this code:

EraseInitStruct.TypeErase   = 0x00000000;   //<-----equal to FLASH_TYPEERASE_PAGES
EraseInitStruct.Banks       = 0x00000001;   //<-----equal to FLASH_BANK_1
EraseInitStruct.Page        = 0x0000000F;   //<-----15 (0x08007800 - 0x08007FFF) (the 16th page)
EraseInitStruct.NbPages     = 0x00000001;   //<-----1

I understood this code deleting page 15 from flash storage. But i know in flash we can delete just blocks/sectors and not pages...

How this function work?

Thank you

c
block
stm32
flash-memory
asked on Stack Overflow Jan 21, 2020 by Doron Raz • edited Jan 22, 2020 by VC.One

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0