Failed to connect to ESP32: No serial data received

I want to program ESP32-CAM and it gives me always this error even though I telecharge the driver cp210x
error:

Le croquis utilise 1127921 octets (35%) de l'espace de stockage de programmes. Le maximum est de 3145728 octets.
Les variables globales utilisent 54812 octets (16%) de mémoire dynamique, ce qui laisse 272868 octets pour les variables locales. Le maximum est de 327680 octets.
esptool.py v4.5.1
Serial port COM6
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2```

:warning:
Post mis dans la mauvaise section, on parle anglais dans les forums généraux. déplacé vers le forum francophone.

Merci de prendre en compte les recommandations listées dans Les bonnes pratiques du Forum Francophone

Hi! Welcome to the Forum.

Which version of the ESP32 boards are you using?

There are differences between version 2.x and 3.x of the ESP32 API. On 3.x version, ledcSetup() and ledcAttachPin() are no longer available.

That means you have 2 options:

Rollback the version of the ESP32 board to the version 2.x OR modify your code according to the new API.

Take a look in this Espressif document:

https://docs.espressif.com/projects/arduino-esp32/en/latest/migration_guides/2.x_to_3.0.html#ledc

I use an arduino uno R3 for programming the ESP32-CAM and in arduino ide gives me an error.
error:
`Le croquis utilise 1127921 octets (35%) de l'espace de stockage de programmes. Le maximum est de 3145728 octets.
Les variables globales utilisent 54812 octets (16%) de mémoire dynamique, ce qui laisse 272868 octets pour les variables locales. Le maximum est de 327680 octets.
esptool.py v4.5.1
Serial port COM3
Connecting...

A serial exception error occurred: Write timeout
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
Failed uploading: uploading error: exit status 1`

That's a different question...

Were the compilation errors solved?

How are you connecting everything? Are you following a tutorial? Which one?

1 Like

yes the compilation errors have been corrected
Thank you very much
Here is the connection of ESP32-CAM with arduino:

I can see no problem with the schematic as long as your connections are exactly the same and your ESPCAM is the very same of the schematic.

Are the settings like the one below?

Board: “ESP32 Wrover Module”
Upload Speed: “115200”
Flash Frequency: “80MHz”
Flash Mode: “QIO”
Partition Scheme: “Huge APP (3MB No OTA/1 MB SPIFFS)”
Core Debug Level: “None”
Port: COMx ( According to your port connection)

yes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.