use ups for your PC while flashing phone. Charge battery fully atlast for 3 hours for safer side.