AnsweredAssumed Answered

STM32F051 EEPRom emulation (AN4061)

Question asked by Martin Davey on Jan 25, 2013
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.

Outcomes