Skip to main content
Martin Davey
Associate III
January 25, 2013
Question

STM32F051 EEPRom emulation (AN4061)

  • January 25, 2013
  • 0 replies
  • 556 views
Posted on January 25, 2013 at 17:12

Hi All,

According to the apps note AN4061, a page erase should only occur when one page is full.

For instance, after the first run and the memory is formatted, page0 is marked as VALID_PAGE, and page1 is marked as ERASED.

However on page 7,  of the apps note, it shows page1 being erased every time at power up, regardless if page 0 is full. This is exactly what the code does.

Does a flash erase actually occur in this case, if page 1 contains all FF's? Otherwise surely the calculations on page 17 cannot apply if page1 is erased at power up every time?

Perhaps I have mis-understood?

BR's,

Martin.
    This topic has been closed for replies.