[SOLVED] Nano ESP32 upload issue

Hello Arduino friends,

A question about this board: Arduino ESP32 nano

This board does not have on-board USB to serial converter; it uses ESP32 as USB device
(Espressif Systems - ESP32 Native USB (0x1001))

Assume basic sketch just with

void setup() {
// put your setup code here, to run once:
}

void loop() {
// put your main code here, to run repeatedly:
}

When I try Sketch->Upload
I get error: No DFU capable USB device available
Failed uploading: uploading error: exit status 74

When I try Sketch->Upload using programmer
It uploads correctly.

I did a little research here...

There are like two modes of booting:
(1) double-tap the RESET button quickly. The onboard RGB LED will start pulsing green.
In my case Arduino is detected as USB(COM20) and windows devmgmt.msc shows Arduino DFU with exclamation mark symbol, see attached picture right hand side.

Result: Sketch->Upload does not work

(2) When booting without RESET button pressed. The onboard RGB is dark.
In my case Arduino is detected as USB(COM19) see attached picture left hand side.

Result: Sketch->"Upload using programmer" works. While Sketch->Upload does not work.

So my conclusion is that's probably something wrong with windows driver.

Now it is solved. I started devmgmt.msc as admin. And choose update driver on Arduino DFU. I gave a option "STM32 bootloader" driver which already was on my PC in the drivers list. And in the end Windows accepted it. I use Windows 10 Pro in my case.

Now Sketch->Upload works. :grinning_face:

I received 6 Nano ESP32's but they could not be programmed. Pressing the reset button did not result in a flashing green LED. The solution is as follows:

  1. Connect GND to B1 with a jumper; the LED should light green.

  2. Keep GND–B1 connected and press RST. Then remove the jumper; the LED should remain lit purple.

  3. Select Arduino Nano ESP32 and the port of the board.

  4. Go to Tools → Programmer → Esptool and choose Tools → Burn Bootloader. This clears data and sketches on the board.

  5. Then upload with Sketch → Upload Using Programmer. When finished, press RST to exit download mode.

    Now the Arduino behaves normally.