Bug in HAL_FLASHEx_DATAEEPROM_Unlock() - file stm32l1xx_hal_flash_ex.c v1.1.3
Posted on May 04, 2016 at 11:36Function returns HAL_ERR if PELOCK bit in PECR is already unlocked, so in my code I changed it into this: HAL_StatusTypeDef HAL_FLASHEx_DATAEEPROM_Unlock(void) { if (READ_BIT((*FLASH).PECR, FLASH_PECR_PELOCK)) ...