I can't upload to my Stick C anymore

  • Hello everyone,
    I uploaded some Arduino code to my Stick C - code for reading from the I2S microphone.
    The code causes the stick to repeatedly restart due to probably bug in the code.
    Now when the Stick is connected to the USB of the computer, the mouse cursor starts moving crazy around.
    When I try to upload any Arduino code the upload fails.
    How I can recover/reset it?
    I have tried turning off/on, and disconnecting connecting the USB multiple times.
    Any ideas?

  • Please use esptool from command line and use the erase flash command and see if your problem persists https://github.com/espressif/esptool