AnsweredAssumed Answered

STM32F4 EEPROM emulation HAL library

Question asked by Lukasz Przenioslo on Aug 19, 2015
Latest reply on Jan 27, 2018 by MB JS
Hello there,
I am trying to find any resources on how to emulate eeprom inside flash of an STM32F4 MCU using the HAL library, but I cannot find anything. Could anyone please point me out any resources, examples or tutorials?

Also, what are those in stm32_hal_legacy.h, i dont get it:

/** @defgroup HAL_FLASH_Aliased_Functions HAL FLASH Aliased Functions maintained for legacy purpose
  * @{
  */
#define FLASH_HalfPageProgram      HAL_FLASHEx_HalfPageProgram
#define FLASH_EnableRunPowerDown   HAL_FLASHEx_EnableRunPowerDown
#define FLASH_DisableRunPowerDown  HAL_FLASHEx_DisableRunPowerDown
#define HAL_DATA_EEPROMEx_Unlock   HAL_FLASHEx_DATAEEPROM_Unlock
#define HAL_DATA_EEPROMEx_Lock     HAL_FLASHEx_DATAEEPROM_Lock
#define HAL_DATA_EEPROMEx_Erase    HAL_FLASHEx_DATAEEPROM_Erase
#define HAL_DATA_EEPROMEx_Program  HAL_FLASHEx_DATAEEPROM_Program

Outcomes