@jinantha, did you try to switch qio to dio in espruino-tools command line ? you can also try replugging after the erase It is mentioned here recently, it helped me : http://forum.espruino.com/comments/13902968/
@Polypod started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@jinantha, did you try to switch qio to dio in espruino-tools command line ?
you can also try replugging after the erase
It is mentioned here recently, it helped me : http://forum.espruino.com/comments/13902968/