When there is an error the IDE will print relevant information in the console. Learn how to resolve common errors.
Check this first
These checks will resolve the most common errors:
-
Check your sketch for errors. Click the Verify button to compile your sketch without uploading it. If you still get an error, see If your sketch doesn’t compile.
-
Check your board and port selections. In the top menu bar, make sure the correct board is selected in Tools > Board, and that you’ve selected the right port in Tools > Port. Try disconnecting and reconnecting your board if you’re unsure which port is being used (close and reopen the Port menu to refresh the list).
-
If you can’t find your board in the list, or if the Tools > Port option is missing, see If your board does not appear in the port menu.
-
To learn more about port and board selection, see Select the right port and board.
-
-
Check your connections. Your board needs to be connected with a data USB cable (charge-only cables will not work). Make sure the cable is fully inserted in the port on each end. Try a different USB cable, and avoid hubs and other adapters if possible. Remove connections to the board pins, especially the 0 (RX) and 1 (TX) digital pins.
If you still get an error, you’ll find instructions for specific error messages below.
List of errors
Note
Exit status 1 only indicates that the process has failed. Look for preceding lines in the error output for more specific information.
Note
Only errors that do not link to other pages are listed below.
No device found on <port>
An error occurred while uploading the sketch
No device found on <port>
-
Make sure the correct port is selected in Tools > Port.
-
Close other instances of Arduino IDE, serial monitors, and other software that may be blocking the port.
-
Restart your computer.
If you are uploading to UNO R4 WiFi
-
Press and release the button marked “RESET” on the board quickly twice. The LED marked “L” on the board should now be pulsing.
-
Select the port of the board from the menu in Arduino IDE. The port might have changed after the previous step, so make sure to verify that it is selected.
Now try uploading the sketch to your board again.
Couldn’t find a Board on the selected port
Couldn't find a Board on the selected port. Check that you have the correct port selected.
If it is correct, try pressing the board's reset button after initiating the upload.
This error can happen if the board on the selected port has been disconnected from the computer, or reassigned to a different port.
-
Make sure the board is connected to your computer.
-
Select the board in Tools > Port.
- For step-by-step instructions, see Select board and port in Arduino IDE.
- If you can’t find the port, see If your board does not appear in the port menu.
Note
On Windows, you can manually set a port for the board to stop it from being reassigned.
jssc.SerialPortException: Port name - <port>; Method name - openPort(); Exception type - Port busy
-
Make sure the correct port is selected in Tools > Port.
-
Close other instances of Arduino IDE, serial monitors, and other software that may be blocking the port.
-
Restart your computer.
Still need help?
-
Visit the Installation & Troubleshooting category in the Arduino forum.
Please include this information:
- A verbose error output
- The name of your board
- Your operating system
- Your Arduino IDE version