FLASH_WaitForLastOperation returns error in STM32G070
I try to erase a page using this code:bool EraseFlash() { uint32_t FirstPage = 0, NbOfPages = 0; uint32_t PageError = 0; int i; FLASH_EraseInitTypeDef EraseInitStruct = {0}; HAL_FLASH_Unlock(); FirstPage = GetPage(FLASH_START); /* Get the ...