I am attaching my code for reference.int FLASH_Erase_Size(uint32_t uStart, uint32_t uLength){ uint32_t page_error = 0U; FLASH_EraseInitTypeDef x_erase_init; uint32_t e_ret_status = HAL_ERROR; uint32_t first_page = 0U, nb_of_pages = 0U, bank_number = ...