# Weird Nano ESP32 behavior

**URL:** <https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960>\
**Category:** Nano ESP32\
**Created:** [January 1, 2025, 7:55pm UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960 "2025-01-01T19:55:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![g1gnip](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/g1gnip/32/1145007_2.png) [@g1gnip](https://forum.arduino.cc/u/g1gnip)\
**Post date:** [January 1, 2025, 7:55pm UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/1 "2025-01-01T19:55:35Z")

</div>

Hi,

when I connect and disconnect my esp32 from usb, it comes back and connects to COM13 (which I have chosen in device mgr). Then I click upload and it says "No DFU capable USB device available".

Then, when I double press RESET button on this board it goes into this slowly flashing mode, and it then connects to first available COM port and upload works just fine!

What can I do to make this board work without double pressing reset button?

---

<div class="post-metadata">

**Author:** ![gilshultz](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gilshultz](https://forum.arduino.cc/u/gilshultz)\
**Post date:** [January 2, 2025, 12:34am UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/2 "2025-01-02T00:34:21Z")

</div>

What you're observing is your PC enumerating the USB ports. When you disconnect a device, the port is released and made available for other devices. Upon reconnecting or connecting a new device, the enumeration process starts at zero and increments upward as additional ports are assigned.

---

<div class="post-metadata">

**Author:** ![g1gnip](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/g1gnip/32/1145007_2.png) [@g1gnip](https://forum.arduino.cc/u/g1gnip)\
**Post date:** [January 5, 2025, 12:56am UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/3 "2025-01-05T00:56:10Z")

</div>

To be honest I don't think that's that.

I've seen [this thread](https://forum.arduino.cc/t/nano-esp-32-bricked/1266537) and I feel it has something to do with that. Also I've read somewhere about micropython/C switching and I feel it has something to do with it.

Why I'm able to upload after double tapping RST button only?

Can someone explain to me what double tap does at all?

and I did this double tap thing

---

<div class="post-metadata">

**Author:** ![lburelli](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lburelli/32/989898_2.png) [@lburelli](https://forum.arduino.cc/u/lburelli)\
**Post date:** [January 7, 2025, 3:45pm UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/4 "2025-01-07T15:45:27Z")

</div>

Hello @g1gnip, I think your feelings are correct! 🙂

One question though, which package are you using in the Boards Manager?

- `Arduino ESP32 Boards` (from Arduino)
- or `esp32` (from Espressif)?

Also, have you tried to follow the recovery steps in the thread you linked (which are described in more detail in [this support article](https://support.arduino.cc/hc/en-us/articles/9810414060188-Reset-the-Arduino-bootloader-on-the-Nano-ESP32))?  
If not, please do and let us know your results!

---

<div class="post-metadata">

**Author:** ![g1gnip](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/g1gnip/32/1145007_2.png) [@g1gnip](https://forum.arduino.cc/u/g1gnip)\
**Post date:** [January 9, 2025, 9:26pm UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/5 "2025-01-09T21:26:37Z")

</div>

Thanks Iburelli! I really like when my feelings are correct 😛

I have both packages installed (is this a problem?) and I was trying to use them both, but effect was more or less the same.

I have tried those steps, and they made it possible to upload at all.

I can try again, just not today. I will report back after going through recovery steps you provided! Thanks!

---

<div class="post-metadata">

**Author:** ![g1gnip](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/g1gnip/32/1145007_2.png) [@g1gnip](https://forum.arduino.cc/u/g1gnip)\
**Post date:** [January 10, 2025, 10:22am UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/6 "2025-01-10T10:22:06Z")

</div>

So, I went through recovery steps with zero problems - all as described.

Unfortunately it didn't change nano behavior. Still can't upload sketch with "normal" button, and it doesn't connect to serial monitor after restart. But on the bottom bar on the right it says "Arduino Nano ESP32 on COM13 [connected]"

Upload fails with:  
No DFU capable USB device available  
Failed uploading: uploading error: exit status 74

---

<div class="post-metadata">

**Author:** ![lburelli](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lburelli/32/989898_2.png) [@lburelli](https://forum.arduino.cc/u/lburelli)\
**Post date:** [January 10, 2025, 4:36pm UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/7 "2025-01-10T16:36:18Z")

</div>

There is no problem in having both installed, but it makes it more difficult to actually be sure about what you are using, since both define the same board.

Can you try uninstalling the `esp32` package, and re-doing the bootloader update with a Blink example and the latest `Arduino ESP32 Boards` package?

I have a few additional questions for you:

- let me know the core version you are using;
- does the issue happen even with the Blink example?
- does double tapping until you have a fading green light fix the issue?

---

<div class="post-metadata">

**Author:** ![g1gnip](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/g1gnip/32/1145007_2.png) [@g1gnip](https://forum.arduino.cc/u/g1gnip)\
**Post date:** [January 10, 2025, 9:14pm UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/8 "2025-01-10T21:14:14Z")

</div>

> [@lburelli](#):
>
> Can you try uninstalling the `esp32` package, and re-doing the bootloader update with a Blink example and the latest `Arduino ESP32 Boards` package?

It worked! I'm pretty sure I used both of them in testing previously, so not sure what could have happened now?

It stopped going into COM13 and I can upload any sketch with just an arrow.

There is however something weird: After uploading sketch I'm working on right now it has 3 leds on. Green led by usb is on fully and 2 other leds are on, but just slightly. The one near reset button looks like it has 2 colors at the same time. Weird!

 ![esp32-weird-leds](https://europe1.discourse-cdn.com/arduino/original/4X/1/1/8/1186e8ef441696707bc93cf245445b6012f2a648.png)

To answer your questions:

> [@lburelli](#):
>
> let me know the core version you are using;

2.0.18-arduino.5 (in IDE 2.3.4)

> [@lburelli](#):
>
> does the issue happen even with the Blink example?

yes, it was happening even with blink example.

> [@lburelli](#):
>
> does double tapping until you have a fading green light fix the issue?

it was working more or less normal after double tapping and uploading (with fading green led).

It is ok now, but I'd like to know what was the problem? Board was clearly having episode of schizophrenia! Sometimes connecting to COM13 and acting weird, and sometime connecting to COM6 and acting normal but broken! 🙂 Please tell me what you think happened?

---

<div class="post-metadata">

**Author:** ![lburelli](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lburelli/32/989898_2.png) [@lburelli](https://forum.arduino.cc/u/lburelli)\
**Post date:** [January 13, 2025, 8:52am UTC](https://forum.arduino.cc/t/weird-nano-esp32-behavior/1337960/9 "2025-01-13T08:52:25Z")

</div>

I'm not really a board psychologist 🤣 but I would guess a combination of uploads switching among the two cores (Arduino and Espressif) may have caused the issue. 🙂 Reloading the bootloader restores stock programming and thus should recover any Nano ESP32 (except for hardware damages).

The current LED status is also peculiar - that should happen only in the hardware bootloader, during the recovery procedure you just performed, and not while running a sketch.  
If you are using libraries in your sketch, please read this guide on [Nano ESP32 pin numbering](https://docs.arduino.cc/tutorials/nano-esp32/pin-setup). For maximum compatibility you should set "By GPIO number (legacy)" in the "Tools" \> "Pin Numbering" menu of the IDE, and use labels instead of numbers (e.g. `digitalWrite(D3, HIGH)` instead of `digitalWrite(3, HIGH)`) whenever you refer to pins in your sketch.
