logo elektroda
logo elektroda
X
logo elektroda

ESP32 DevKit-C v4 not detected by computer, no connection via USB/COM

Roli 1383 18
Best answers

Why does my ESP32 DevKit-C v4 not connect to my computer over USB/COM even though the CP2102 driver is installed?

Your ESP32 is actually communicating over UART, so the USB/CP2102 link and COM port are not the main problem; the logs show the board resetting and then waiting for a download, while the repeated `invalid header: 0xffffffff` points to a bad or incomplete firmware image [#21755632] Test the board with a plain serial terminal first, because a reset should print data even without Arduino IDE [#21746744] In this thread, Arduino upload failed but flashing with ESPTOOL worked immediately [#21758482] After that, the same `invalid header` loop was judged to mean the uploaded software was incomplete or corrupted [#21759056] A suggested next step was to erase the flash completely and reflash the board [#21759111]
Generated by the language model.
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21746180
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    Hello everyone.
    I'm new to ESP32, my problem is that my ESP32 devkit-c v4 board is not connecting to my computer. CP2102 drivers installed, it is visible in the manager, pressing BOOT does not do anything, changing the port in the driver does not change anything either. The messages I have and Arduino 1.8.19 are :

    - message selected serial port does not exist or your board is not connected
    - Failed to connect to ESP32: No serial data received
    - A fatal error occurred: Could not open COM4, the port is busy or doesn't exist.

    In the bar at the bottom of the Arduino I have DISABLED on COM3.

    Thank you in advance for your help, regards.
  • ADVERTISEMENT
  • #2 21746196
    tos18
    Level 42  
    Posts: 7022
    Help: 1089
    Rate: 1811
    Roli wrote:
    The CP2102 drivers are installed, they are visible in the manager

    How visible ?
  • #3 21746215
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    [img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbMAAABMCAYAAADnXln/AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAE/gSURBVHhe7b13fFRF9/j/3ppkk01PgCQEAqGEFkroIE2aNEVUlCqICKLoIyqCIkhVBKkCUgQEBQTp0nuH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1XRw53j//B3ktujJm/gPdfrcfdw7/yyX9+ILTtYBYuXMbSZT/QNjyD0R+O5PSDTBAWjq6ZxajvthLVfRJLl61gwdyvaBCq4V70Vj4f+T1eLw5m4S/LWDZtIu7HV/LN0r0kXz3KlB9/puLbE/n5l6UsnP414eVUIIzsWDiJiT/tofuH37Fs2TIWzB2JT8qffPnNIh7YcjVRY+odNq/cQlDHj1m1ajIfvP4yyUc2cS45J//iiDm6H6MykmbVA5wuXEJCQuKfwTMTZgAKhQIvLy8qV66MSqUiLi6O7Oxs52IlUtQBROTNf8ny6iwqyPJNi/mCLFeYWfNc9XMF2l87gACYOX9gNVO++YYxn43g7Q8no2zcn5ebhgCgxIfOH43m1XbNqBLiybFNv6Fo+x6fvP06NWpEULN+A4Z/NIJ2Za6wevtFTJmJ/P7rr
  • ADVERTISEMENT
  • #4 21746244
    inot
    Level 38  
    Posts: 3505
    Help: 434
    Rate: 785
    And where is this picture?
  • #5 21746250
    roman106
    Level 28  
    Posts: 1291
    Help: 96
    Rate: 211
    You have used a cable that has only power supply without data signals.
  • #6 21746402
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    The cable used is with data transmission.
    The clipping of the photo is from the device manager.
  • ADVERTISEMENT
  • #7 21746695
    efi222
    Level 21  
    Posts: 655
    Help: 12
    Rate: 1057
    Roli wrote:
    A fatal error occurred: Could not open COM4, the port is busy or doesn't exist.

    And according to the image, the UART driver is on the COM3 port
  • #8 21746699
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    Yes, because I changed the port number in the controller.
    The port number in the controller coincides with the one in the Arduino.
  • #9 21746719
    inot
    Level 38  
    Posts: 3505
    Help: 434
    Rate: 785
    What board do you have set up in the Arduino?
  • ADVERTISEMENT
  • #10 21746724
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    ESP32 Dev Module
  • #11 21746735
    inot
    Level 38  
    Posts: 3505
    Help: 434
    Rate: 785
    This should work.
  • #12 21746740
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    What screenshots do I have to show, everything set up according to the tutorials on the net + AI support and it still doesn't connect.
    I've tried loading the soft on the board with PCM5102 + SPCL780 display connected and on the board without additional devices and it doesn't change anything.
    Any suggestions / hints ????
  • #13 21746744
    efi222
    Level 21  
    Posts: 655
    Help: 12
    Rate: 1057
    Run any serial terminal on your computer. Even a brand new ESP, after a reset should send information to it.
    This is such a simplest way to check communication without the arduino IDE.
    I recommend a simple Termite.
  • #14 21746950
    roman106
    Level 28  
    Posts: 1291
    Help: 96
    Rate: 211
    Reinstall the drivers again. In my case you have to do this every so often.
  • #15 21755603
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    Termite snapshot:
    rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    invalid header: 0xffffffff
    invalid header: 0xffffffff
    invalid header: 0xffffffff
    invalid header: 0xffffffff
    invalid header: 0xffffffffff
    invalid header: 0xffffffffff
    invalid header: 0xffffffffff
    invalid header: 0xffffffffff
    ets Jul 29 2019 12:21:46

    rst:0x10 (RTCWDT_RTC_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
    waiting for download
  • #16 21755632
    efi222
    Level 21  
    Posts: 655
    Help: 12
    Rate: 1057
    Communication via uart works.
    The first message is a reset.
    Next something with the program header is wrong. Incomplete of some kind.
    Then flash is pressed. The module is waiting for a soft upload.
    The message is correct.
  • #17 21758482
    Roli
    Level 26  
    Posts: 855
    Help: 58
    Rate: 168
    Arduino was throwing an error, I switched to ESPTOOL.
    Surprisingly the soft uploaded first time, all without any problems.
    The port monitor throws me something like this:
    22:23:52.865 -> rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    22:23:52.913 -> invalid header: 0xffffffffff
    22:23:52.961 -> invalid header: 0xffffffffff
    22:23:53.009 -> invalid header: 0xffffffffff
    22:23:53.009 -> invalid header: 0xffffffffff
    22:23:53.056 -> invalid header: 0xffffffffff
    22:23.53.103 -> invalid header: 0xffffffffff
    22:23.53.151 -> invalid header: 0xffffffffff
    22:23.53.199 -> invalid header: 0xffffffffff
    22:23:53.199 -> ets Jul 29 2019 12:21:46

    And this message keeps looping
  • #18 21759056
    efi222
    Level 21  
    Posts: 655
    Help: 12
    Rate: 1057
    In my opinion, the software you win is incomplete.
  • #19 21759111
    Anonymous
    Level 1  

FAQ

TL;DR: A 1‑port mismatch (IDE on COM4 vs device on COM3) blocked uploads; “the UART driver is on the COM3 port.” [Elektroda, efi222, post #21746695] Why it matters: If your ESP32 DevKit‑C v4 won’t connect, matching the actual COM port and confirming bootloader state solves most “no serial data” errors fast. This FAQ is for Arduino users fixing ESP32 USB/COM connection issues.

Quick Facts

How do I fix “Failed to connect to ESP32: No serial data received” in Arduino IDE?

Confirm the COM port in Tools > Port matches Device Manager. In this case, the board enumerated on COM3 while the IDE targeted COM4. Select the matching COM port, then try uploading again. If the error persists, reset the board and retry. [Elektroda, efi222, post #21746695]

Why does Arduino say “Could not open COM4” but Device Manager shows COM3?

Windows assigned the USB‑UART to COM3. Arduino attempted COM4, so the port was nonexistent or busy. Select COM3 in Arduino, or replug the board and refresh ports. Changing numbers manually does not move the hardware endpoint. [Elektroda, efi222, post #21746695]

What does “waiting for download” on the ESP32 serial log mean?

Your ESP32 entered the ROM bootloader (Download Boot). It waits for a flashing tool to send firmware. This appears alongside rst and boot codes, then the prompt “waiting for download.” Start an upload from Arduino or esptool to proceed. [Elektroda, Roli, post #21755603]

Why do I see many “invalid header: 0xffffffff” lines before “waiting for download”?

Those lines indicate the bootloader read empty or corrupt flash headers. In the provided log, at least eight such lines appear before entering download mode. Flashing valid firmware clears them on next reset. [Elektroda, Roli, post #21755603]

Can a USB power‑only cable cause my ESP32 not to be detected?

Yes. Power‑only cables lack D+/D− data lines, so Windows never enumerates a COM port. Use a known data cable, or test with another data‑capable cable. “Use a cable with data transmission.” [Elektroda, roman106, post #21746250]

Which board should I select in Arduino IDE for an ESP32 DevKit‑C v4?

Select “ESP32 Dev Module” under Tools > Board. That board profile was used in the thread and confirmed as appropriate. Keep default flash mode and frequency unless your module specifies otherwise. [Elektroda, Roli, post #21746724]

How can I test the serial connection without Arduino IDE?

Open a serial terminal (e.g., Termite), pick the observed COM port, and press reset on the board. You should see the boot log. This verifies UART communication independent of Arduino. “I recommend a simple Termite.” [Elektroda, efi222, post #21746744]

The terminal shows output—does that prove my USB‑UART works?

Yes. Seeing the boot log confirms USB‑UART communication. As one expert noted, “Communication via uart is.” If uploads still fail, target the correct COM and ensure the board is in flashing mode. [Elektroda, efi222, post #21755632]

Do I need to reinstall the CP210x driver if detection is flaky?

It can help. One user restored connectivity by reinstalling the CP210x driver when enumeration became unreliable. Uninstall the device, disconnect, reinstall the driver, then reconnect and verify the COM port. [Elektroda, roman106, post #21746950]

How do I manually force upload if auto‑reset fails?

Try this 3‑step method:
  1. Hold BOOT on the ESP32.
  2. Click Upload in Arduino; release BOOT when “Connecting...” appears.
  3. Wait for “Done uploading,” then press EN/RESET. This matches the scenario where pressing BOOT was attempted. [Elektroda, Roli, post #21746180]

Arduino shows “DISABLED” next to the COM port. What does that imply?

It implies the IDE did not open a valid serial port for the current session. The port may be wrong, missing, or in use. Select the correct COM, close other serial apps, and retry the upload. [Elektroda, Roli, post #21746180]

What should I do when I get “the port is busy or doesn’t exist”?

Close any terminals or background tools using that COM port. Ensure Arduino and only one terminal are open at a time. Then select the correct COM and retry the upload. [Elektroda, Roli, post #21746180]

Is changing the COM number in Windows a real fix?

No. Renumbering the port in Device Manager changes the label, not the device path Arduino targets. You must still select the actual active COM in Arduino after renumbering. [Elektroda, Roli, post #21746699]

Could attached peripherals (displays, DACs) block flashing?

They can, if they pull boot pins or draw excessive power. The poster tested both with and without PCM5102 and a display; behavior did not change. Disconnect add‑ons during troubleshooting. [Elektroda, Roli, post #21746740]

What does rst:0x10 (RTCWDT_RTC_RESET) indicate during boot?

It indicates a reset triggered by the RTC watchdog. Seeing it before entering download mode is normal during repeated flashing attempts and resets. Proceed with upload and then reset. [Elektroda, Roli, post #21755603]

Bottom line: what sequence confirms everything is healthy?

Match the COM port, open a terminal, press reset, and see the boot log. Then upload from Arduino on that same COM. If you see “waiting for download,” start the upload immediately. [Elektroda, Roli, post #21755603]
Generated by the language model.
ADVERTISEMENT