Posted on March 19, 2018 at 07:36I think you're supposed to use HAL_FLASHEx_Erase(FLASH_EraseInitTypeDef *pEraseInit, uint32_t *SectorError) which calls FLASH_Erase_Sector internally along with the missing parts from the peripheral library that you ...