|
| 1 | +--- |
| 2 | +title: "dfu-util errors when uploading (exit status 74)" |
| 3 | +--- |
| 4 | + |
| 5 | +Many Arduino boards use the **dfu-util** utility to upload sketches to the board. Some of these include: |
| 6 | + |
| 7 | +* Arduion UNO R4 Minima |
| 8 | +* Arduino GIGA R1 WiFi |
| 9 | + |
| 10 | +In this article: |
| 11 | + |
| 12 | +* [`Failed uploading: uploading error: exit status 74`](#exit-status-74) |
| 13 | +* [`dfu-util: No DFU capable USB device available`](#no-dfu-capable-usb-device-available) |
| 14 | +* [`dfu-util: Cannot open DFU device {vid}:{pid} found on devnum {n} (LIBUSB_ERROR_ACCESS)`](#libusb-error-access) |
| 15 | +* [`dfu-util: More than one DFU capable USB device found!`](#more-than-one-dfu-capable-usb-device) |
| 16 | +* [`Warning: Invalid DFU suffix signature`](#invalid-dfu-suffix-signature) |
| 17 | + |
| 18 | +--- |
| 19 | + |
| 20 | +<a id="exit-status-74"></a> |
| 21 | + |
| 22 | +## `Failed uploading: uploading error: exit status 74` |
| 23 | + |
| 24 | +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 exit status code (47) is used by the dfu-util upload utility. |
| 25 | + |
| 26 | +<!-- Whenever an upload fails, this message may appear at the end of the console output. --> |
| 27 | + |
| 28 | +--- |
| 29 | + |
| 30 | +<a id="no-dfu-capable-usb-device-available"></a> |
| 31 | + |
| 32 | +## `dfu-util: No DFU capable USB device available` |
| 33 | + |
| 34 | +This message indicates that no USB devices supporting the DFU upload protocol were found by dfu-util. |
| 35 | + |
| 36 | +Follow these steps: |
| 37 | + |
| 38 | +1. 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](https://support.arduino.cc/hc/en-us/articles/4406856349970-Select-board-and-port-in-Arduino-IDE). |
| 39 | + |
| 40 | +2. 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. |
| 41 | + |
| 42 | +--- |
| 43 | + |
| 44 | +<a id="libusb-error-access"></a> |
| 45 | + |
| 46 | +## `dfu-util: Cannot open DFU device {vid}:{pid} found on devnum {n} (LIBUSB_ERROR_ACCESS)` |
| 47 | + |
| 48 | +The message varies depending on the board. |
| 49 | + |
| 50 | +On Linux, this error can be caused by missing udev rules. This is more likely to be the cause if the error the first time you're uploading from the system. |
| 51 | + |
| 52 | + <a class="link-chevron-right">Fix udev rules on Linux</a> |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +<a id="more-than-one-dfu-capable-usb-device"></a> |
| 57 | + |
| 58 | +## `dfu-util: More than one DFU capable USB device found!` |
| 59 | + |
| 60 | +When uploading a sketch, you may see this error: |
| 61 | + |
| 62 | +``` |
| 63 | +dfu-util: More than one DFU capable USB device found! Try `--list' and specify the serial number or disconnect all but one device |
| 64 | +``` |
| 65 | + |
| 66 | +To resolve the error, disconnect any extra boards or dfu capable devices you have connected to your computer. |
| 67 | + |
| 68 | +> **Note:** The port selection is not considered when dfu-util is used for uploading the sketch. |
| 69 | +
|
| 70 | +--- |
| 71 | + |
| 72 | +<a id="invalid-dfu-suffix-signature"></a> |
| 73 | + |
| 74 | +## `Warning: Invalid DFU suffix signature` <!-- TODO --> |
| 75 | + |
| 76 | +When uploading a sketch to you may receive this warning in the console: |
| 77 | + |
| 78 | +``` |
| 79 | +Warning: Invalid DFU suffix signature |
| 80 | +A valid DFU suffix will be required in a future dfu-util release |
| 81 | +``` |
| 82 | + |
| 83 | +This warning is expected, and does not indicate a problem. The warning is only displayed if [verbose output is enabled](https://support.arduino.cc/hc/en-us/articles/4407705216274) in Preferences. If no other warnings or errors appears in the output, the sketch was most likely uploaded successfully. |
| 84 | + |
| 85 | +<!-- markdownlint-disable-file HC001 --> |
0 commit comments