No serial data received in esp32

I am having an issue uploading code from the Arduino IDE to my ESP32. It keeps showing the error: “Fatal Error: No serial data received.”

I have already downloaded and installed the CP210x driver for Windows, but the error still exists. I also tried the boot button method, but I am getting the same error.

What should I do? Please help.

The sketch seems to compile, so this looks like an upload/serial connection problem, not a code problem.

A few things I would check:

  1. Make sure the selected board matches the actual ESP32 module.
  2. Make sure the selected port is really the ESP32 port.
  3. Try another USB cable, preferably a known data cable, not only a charging cable.
  4. Try a different USB port.
  5. Hold BOOT, click Upload, and release BOOT when the IDE shows “Connecting...”.

i have done all the things you have mentioned but still the error is showing

Please post the exact ESP32 board/module you are using and maybe a photo of the board.

Were you still holding down the BOOT button when you saw connecting?

Welcome!
Two simple questions:

  1. In the Tools menu, which processor did you choose, and does it
    match the board you are using?
  2. Does the correct port appear in the Tools > Port menu?

If either of those is incorrect, you have likely found the problem.

When you get this message (not sure which IDE version you are using),
there is usually a window or box that opens with an option to copy the
output. Copy the entire message, then click the < CODE > button in the
forum editor and paste it there.

Posting it that way makes it much easier to read and greatly improves
the chances of getting good help.


i am using this esp32 c type with 38 pins

yes i did but still the error exit as no serial data received

That's why @sonofcy asked.

You have to hold but to release the button when you read "Connecting..." as posted by @InquisitiveMind:

Hold BOOT, click Upload, and release BOOT when the IDE shows “Connecting...”.

There are esp32 boards that require this sequence, some do not. So there might be a different issue.

But to get a solution you have to sort out the most likely reasons for failure...

Microcontrollers are "insistent" regarding the way how to handle them therefore it's critical that you exactly follow the instructions :wink:

It might be also helpful if you would post a link to the url where you ordered your ESP32.

Good luck!
ec2021

BTW: Make a very easy test first:

  • Open Arduino IDE
  • Connect the board
  • Choose board and com port
  • Open Serial Terminal in the IDE
  • Change baudrate to 115200
  • Shortly press the board's RST button

Do you see a startup message in the terminal? If not unplug and plug in again... Any messages in the terminal window?

If yes, try now the EN / RST sequence as described above. Check and post the messages you got.

For that board just select ESP32 DEV Module

yes i did all the steps recommended still error persists

Are you really sure about this:
Try another USB cable, preferably a known data cable, not only a charging cable.

When you show us proof you have followed the advice of post 2, 6, and 9 then maybe someone can help.
My 'hunch' is it is a win device mgr issue but without screen shots we can't do a thing.

Can you post the result of the basic test I posted under "BTW"?