However, we use it without the interrupt. You can adapt the FLASH_EraseProgram project by replacing the HAL_FLASHEx_Erase function with HAL_FLASHEx_Erase_IT and modifying the code and configuration to take into account the generation of the interrupt on the flash.