My arduino nano esp32 doesn't upload the code

Basically, when I try to upload the schematic the console says:

Cannot open DFU device 2341:0070 found on devnum 15 (LIBUSB_ERROR_NOT_FOUND)
No DFU capable USB device available
Caricamento non riuscito: errore durante il caricamento: exit status 74.
Can anyone help me? Ty

Hi @giampiarto. Are you using Arduino IDE?

Yes

This error indicates you have not installed the drivers for the Nano ESP32 board.

Normally, Arduino IDE automatically installs the drivers for you. However, the drivers will not be installed under either of the following scenarios:

  • You installed the "esp32" boards platform instead of the "Arduino ESP32 Boards" platform.
    Although both platforms provide support for the Nano ESP32, only the "Arduino ESP32 Boards" platform installs the board's drivers.
  • You installed the "Arduino ESP32 Boards" platform, but then dismissed the Windows User Account Control (UAC) dialog for the driver installation:

    Do you want to allow this app from an unknown publisher to make changes to your device?

    dpinst-amd64.exe

The solution will be to install/reinstall the "Arduino ESP32 Boards" platform, making sure to approve the driver installation offer:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
  2. Find the "Arduino ESP32 Boards" entry in the list of boards platforms.
  3. If you see a label like "<version number> installed" (where <version number> is some version number like 2.0.13), hover the mouse pointer over the "Arduino ESP32 Boards" entry, click the ●●● icon that appears at the top right corner of the entry, select "Remove" from the menu that opens, and then wait for the uninstallation process to finish.
  4. Click the "INSTALL" button at the bottom of the "Arduino ESP32 Boards" entry.
  5. You should now see a "User Account Control" dialog about dpinst-amd64.exe asking whether you "want to allow this app from an unknown publisher to make changes to your device". Click the "Yes" button in the dialog:
  6. Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:

    Successfully installed platform ...

After you have done that, try uploading the sketch to your Nano ESP32 board again, just as you did before. Hopefully it will be successful this time. If not, please let us know and we'll provide further assistance.

It works, I've clicked No :slight_smile: Thank you

You are welcome. I'm glad it is working now.

Regards, Per