Can do this before flashing to make sure we have a good connection to the device and that the flash is OK