I was stuck trying to flash it for a couple of days, unsuccessfully, with the same problem as described, and this solution also worked for me!
Thanks so much.