cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F051 EEPRom emulation (AN4061)

Martin Davey
Associate III
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.
0 REPLIES 0