Many Arduino boards use the dfu-util utility to upload sketches to the board. Some of these include:
- Arduino UNO R4 Minima
- Arduino GIGA R1 WiFi
In this article:
Failed uploading: uploading error: exit status 74
dfu-util: No DFU capable USB device available
dfu-util: Cannot open DFU device {vid}:{pid} found on devnum {n} (LIBUSB_ERROR_ACCESS)
dfu-util: Cannot open DFU device {vid}:{pid} found on devnum {n} (LIBUSB_ERROR_NOT_FOUND)
dfu-util: Error during download get_status (LIBUSB_ERROR_PIPE)
dfu-util: More than one DFU capable USB device found!
Warning: Invalid DFU suffix signature
Failed uploading: uploading error: exit status 74
When an upload fails, you may see the message Failed uploading: uploading error: exit status 74
. This is a generic message indicating that the upload process has failed. The specific exit status code (74) is used by the dfu-util upload utility. To understand the issue, always review the messages that appear before this notification, as they offer more detailed context about the failure.
dfu-util: No DFU capable USB device available
This message indicates that no USB devices supporting the DFU upload protocol were found by dfu-util.
Follow these steps to resolve the error:
-
Make sure you have the right board selected in the board selector, or the Tools > Board menu. If you’re unsure about which board you should use, see Select board and port in Arduino IDE.
-
Make sure the device you’re using is properly connected with a working USB data cable. Try using a different USB cable, and avoid using USB hubs if possible.
-
Try putting the board in bootloader mode:
-
Find the board’s reset button and press it two times in quick succession.
-
An onboard LED will fade in and out, indicating that the board is in bootloader mode.
-
Select the correct port for your board from the Tools > Port menu or the board selector, as the port may change when the bootloader runs.
-
Try uploading the sketch again.
-
dfu-util: Cannot open DFU device {vid}:{pid} found on devnum {n} (LIBUSB_ERROR_ACCESS)
On Linux, this error can be caused by missing udev rules (This is more likely to be the cause if the error appears on the first time you’re uploading from the system).
dfu-util: Cannot open DFU device {vid}:{pid} found on devnum {n} (LIBUSB_ERROR_NOT_FOUND)
This error can be caused by missing drivers.
You may have missing drivers if:
- You have only used your board with Arduino Cloud. While Arduino IDE automatically installs required drivers when installing the board platform, this doesn’t happen if you use Arduino Cloud.
- The driver installation was blocked by User Account Control (Windows).
Try this:
-
If you don’t have it yet, install Arduino IDE.
-
In Arduino IDE, go to Tools > Board > Boards Manager.
-
Find the board package by searching for your board’s name. If you need help, see Add boards to Arduino IDE.
-
Install the board package. If it’s already installed, uninstall it first.
-
If prompted, approve the installation of “dpinst-amd64.exe” and other drivers by clicking Yes on the pop-up.
-
Wait for the “Successfully installed platform” message.
dfu-util: Error during download get_status (LIBUSB_ERROR_PIPE)
When uploading a sketch, you may see this error:
dfu-util: Error during download get_status (LIBUSB_ERROR_PIPE)
Follow these steps:
- Ensure your board is firmly connected using a working USB cable.
- Close other applications that may be blocking or interrupting the upload, such as other instances of Arduino IDE or Arduino Cloud, port monitoring tools, or other development tools that may be using the port.
dfu-util: More than one DFU capable USB device found!
When uploading a sketch, you may see this error:
dfu-util: More than one DFU capable USB device found! Try `--list' and specify the serial number or disconnect all but one device
To resolve the error, disconnect any extra boards or dfu capable devices you have connected to your computer.
Note
The port selection is not considered when dfu-util is used for uploading the sketch.
Warning: Invalid DFU suffix signature
When uploading a sketch, you may receive this warning in the console:
Warning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release
This warning is expected and does not indicate a problem. It is only displayed if verbose output is enabled in Preferences. If there are no other warnings or errors in the output, the sketch most likely uploaded successfully.