An error occurred while uploading the sketch

Quickly double press the reset button.

Windows will do a "new hardware found" and put the MKR on a new COM port once you get the timing right for the double press.

AT that point select the new COM port and upload blink.

Be aware also that USB 3.0 type ports are very hit/miss so upload using USB 2.0 ports.

1 Like