Skip to content

Latest commit

 

History

History
194 lines (131 loc) · 10.7 KB

Errors-when-uploading-a-sketch.md

File metadata and controls

194 lines (131 loc) · 10.7 KB
title id
Errors when uploading a sketch
4403365313810

Incident: Touch reset fails for UNO R4 WiFi on Windows (Arduino CLI 0.33.0 or earlier)

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 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).

  • 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.

Upload

Compilation error

Other

avrdude

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>
  1. Make sure the correct port is selected in Tools > Port.

  2. Close other instances of Arduino IDE, serial monitors, and other software that may be blocking the port.

  3. Restart your computer.

  4. See Find and stop process blocking a port.

If you are uploading to UNO R4 WiFi

  1. Press and release the button marked "RESET" on the board quickly twice. The LED marked "L" on the board should now be pulsing.

  2. 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.

  1. Make sure the board is connected to your computer.

  2. Select the board in Tools > Port.

On Windows, you can manually set a port for the board to stop it from being reassigned.

dfu-util: No DFU capable USB device available
Upload error: Failed uploading: uploading error: exit status 74

dfu-util: No DFU capable USB device available
Upload error: Failed uploading: uploading error: exit status 74

This error can happen if the IDE could not find the selected board on the port, or if a port is not selected.

  1. Make sure the board is connected to your computer.

  2. Make sure that the right board is selected in Tools > Board.

  3. Select the board in Tools > Port.

  4. Make sure the correct port is selected in Tools > Port.

  5. Close other instances of Arduino IDE, serial monitors, and other software that may be blocking the port.

  6. Restart your computer.

  7. See Find and stop process blocking a port.

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

  1. Make sure the correct port is selected in Tools > Port.

  2. Close other instances of Arduino IDE, serial monitors, and other software that may be blocking the port.

  3. Restart your computer.

  4. See Find and stop process blocking a port.


Still need help?

Please include this information:

Tags: problem uploading to board, problema subiendo a la placa, https://www.arduino.cc/en/Guide/Troubleshooting, 360003198300, 上传失败, 上传出错, 업로드, problème de téléversement vers la carte, téléverser, проблема загрузки в плату, マイコンボードに書き込めない, マイコンボードに書き込もうとしましたが、エラーが発生しました, problem beim hochladen auf das board, problema di caricamento sulla scheda, 업로딩