Electronic – What are situations to use an actual EEPROM over using emulated EEPROM in flash

eepromflashstm32stm32f0

I am using stm32 which offers EEPROM emulation on its flash.

Given that an external EEPROM cost money, wouldn't using flash makes sense all the time? Currently, my use case is to store config settings and EEPROM emulation is good enough. What are some situations which justify using an external EEPROM?

Best Answer

In most cases, the big difference is endurance (the number of write cycles before the cells wear out). EEPROM cells are made to withstand ~ 10k .. 10M cycles, FLASH cells are rated more like 100 .. 10k cycles. (Numbers from memory, no recent research)

Also, FLASH often requires larger blocks to be erased than EEPROM.

Note that we are talking about FLASH and EEPROM on a micro-controller chip, not about separate chips.