When this has happened to me it's been due to a dodgy USB cable. A new cable usually sorts it.