2017-05-15 06:36 AM
Hello, can anyone explain to me how the eeprom write works on STM chips that do have the internal EEPROM?
It was my understanding that you need to erase the whole page before writing to it but after writing 0x08 on a certain address in EEPROM (using HAL_FLASHEx_DATAEEPROM_Program()) and then just writing 0x01 on the same address without erasing the page first the value in the eeprom is indeed 0x01 which makes little to no sense to me.
#flash-eeprom #eeprom2017-05-15 06:54 PM
Hello,
I think you are mixing up with FLASH.
EEPROM can be written/erased at byte level.
Erase is automatically performed.