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.
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.
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.
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.
-
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. 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.
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.
-
Make sure the board is connected to your computer.
-
Make sure that the right board is selected in Tools > Board.
-
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.
-
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.
On Windows, you can manually set a port for the board to stop it from being reassigned.
-
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.
-
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
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, 업로딩