cancel
Showing results for 
Search instead for 
Did you mean: 

STM32-L053R8 eeprom write question

Michal Dubovsky
Associate II
Posted on May 15, 2017 at 15:36

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 #eeprom
1 REPLY 1
Max
ST Employee
Posted on May 16, 2017 at 03:54

Hello,

I think you are mixing up with FLASH.

EEPROM can be written/erased at byte level.

Erase is automatically performed.