i dont think you need to erase the flash… why did you think you had to do that? I think you erased the bootloader