Charging has nothing to do with upgrading. Are you sure the charger is working? That it's plugged into a powered outlet (or, if you're charging via USB, that you have sufficient current available through your USB ports)? That the cable is good? That the charging port in the phone isn't loose or broken?