Upload to MKR WiFi 1010 fails: "No device found on COM10"

Hi, I am using Arduino MKR WiFi 1010 to upload wifi signal data into ThingSpeak server. I am facing the same problem when trying to upload the code into the arduino. I have tried pressing the RST button and it did blink repeatedly, tried checking the ports if I had set to the correct port or not and also had tried using other cables. Even after all these, I am still facing the same issue and error. The error is as below:

Sketch uses 37124 bytes (14%) of program storage space. Maximum is 262144 bytes.
Global variables use 3984 bytes (12%) of dynamic memory, leaving 28784 bytes for local variables. Maximum is 32768 bytes.
No device found on COM10
Failed uploading: uploading error: exit status 1

What are other possible ways that I can do to deal with this issue?
Thank you.

Hi @mujy. This error might be caused by having the wrong port selected from the Tools > Port menu in Arduino IDE.

Please perform this experiment to verify that the port you have selected is your Arduino board:

  1. Connect the Arduino board to your computer with a USB cable (if it is not already).
  2. Select Tools > Port from the Arduino IDE menus.

If one of the ports in the menu is labeled with the board name (e.g., "COM42 (Arduino Uno)"), that is the port of your Arduino board.

Select that port from the menu and try uploading again.

If the upload still fails, or if none of the ports in the menu are labeled with the name of your board, add a reply here to let us know and we'll investigate the problem further.

Hi, thank you for your reply. I had already done that (select the right board Tools > Port. But somehow, the upload still fails. When I try press the RST button on the Arduino, it will sometimes change the port name to another port name. For example, before pressing the RST button, the arduino will be available in COM5. Then, after pressing the RST button, the arduino LED will blink repeatedly and the port name available will be changed to COM9 or sometimes COM10. Again, the code upload will still fail somehow.

The way uploads to this type of board works is:

  1. Arduino IDE (or the upload tool used by Arduino IDE) sends a signal for the microcontroller to activate the bootloader program.
  2. The microcontroller activates the bootloader program.
  3. The bootloader program runs and waits (normally only for a short time) for an upload to start.
  4. The upload tool sends the program to the microcontroller, where the bootloader program writes it to flash memory.

The way the IDE signals the microcontroller to run the bootloader program is by opening a serial connection to the board at 1200 baud. There is some special code running on the microcontroller in the background of your sketch that recognizes that 1200 baud connection as a special signal.

In some cases, your sketch code might cause that 1200 baud detection code to be missing or not working correctly, which will mean the bootloader is never activated and the upload fails with the "No device found on COM10" error you're encountering.

The fix is to manually put the board into a mode where the bootloader program runs persistently before you do an upload.

Try this:

  1. Press and release the reset button on your board quickly twice.
    You should now see the LED on the board pulsing, which means the bootloader is running.
    The double reset causes the bootloader to run until the board is reset normally, powered off, or an upload is done.
  2. Select the port of your board from the Tools > Port menu.
    :exclamation: The port may be different when the bootloader is running so don't assume you already have the correct port selected.
  3. Select Sketch > Upload from the Arduino IDE menus.

The sketch should now upload successfully.


If the problem persists after a successful upload, you know there is something in your sketch that is breaking the USB functionality. You can verify this by uploading the File > New Sketch sketch, after which the board should be recognized by your computer and you should be able to upload normally. If the uploads work normally after uploading that sketch, but not after uploading the previous sketch you were using, then you will know the issue is caused by that other sketch

Now that you know how to recover your board from this bad state, that should be manageable.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.