-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Failed to connect and upload to ESP32: No serial data received. #8191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @afsheenfaiq, at first glance, it looks as a wrong usage. Marking this as a question and hopefully someone from the community will help answering your issue. |
Most likely a bad cable. Try a high quality cable, and a different USB port. |
I have a couple ESP32 boards with a similar issue.... In order to solve it, I press and release a few times the Some 3rd party boards have such "hardware" issue. |
Does it work if you lower the upload speed? |
Closing the issue. Please feel free to reopen it, whenever necessary. |
Same issue |
It happens because of incorrect WiFi name and password.Put the correct
credentials of your network and it will work.
…On Tue, 18 Jul 2023, 02:07 Mosazghi, ***@***.***> wrote:
Same issue
i have tried holding and releasing the boot button during upload but
doesnt fix the problem.
—
Reply to this email directly, view it on GitHub
<#8191 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4ENMLDT7QPYYRT7NBPPSNLXQV5PXANCNFSM6AAAAAAX5X6BUE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hmm, i dont understand what you mean? Do you mean in the sketch-code? Anyway i forgot to mention that the board gets really hot once i plug in USB. |
I am also facing the same problem. |
You have to install USBAsp AVR Arduino Programmer Drivers. Zidag is easiest way to install it. |
I HAVE ALSO FACING THE SAME ISSUE |
If you are using the ESP32-CAM-MB to program the AI THINKER CAM board then I suggest you try using another board or another cable. However if you are using the FTDI module following online tutorials and getting the same issue then you do not need to change anything in the software but rather the connections. The following are the connections to be made: FTDI_______ESP32 CAM Ensure that the FTDI module is set to 5v using the jumper if necessary. Next press "Upload" and then hold down the RST button on the ESP32-CAM until the Arduino IDE or PlatformIO gives an indication that the code is beginning to upload. For the Arduino IDE, once you see "Connecting..................", release the RST button and the code should upload just fine. If your ftdi module doesn't have a DTR pin then you will have to manually connect IO0 to ground using a jumper, press "upload" while holding down the RST button, then remove the jumper when the code begins to upload then you should release the RST button. A bit overkill for a single upload...... |
@ElectricXion thanks so much you solved my issue. I've been struggling with this error for many hours and following 2 tutorials and checking and rechecking my wiring matched theirs with no joy. You recommended a different wire pattern that works! |
Connnect the ground (GND) close to the 5 Volt pin. :') |
Wait a minute.... this also worked for me finally after an hour and a half going nuts almost in tears checking cables, rechecking, changing them, trying another USB port, changing USB cable, checking with the multimeter, trying another USB to TTL chip.... Does anyone have an explanation on how can this be even possible? Shouldn't GND be GND regardless of it's one side or another???? What I'm missing? Btw, thanks, @ElectricXion ! |
hiii....i tried everything but still the same error remains ...pls help me out here |
I know it's not the best or more clear picture but........
My USB to TTL is not one of those suited with FTDI chip, but one with a CP2012 chip, which has no DTR pin, which you can get away without it. I've uploaded code with it to the ESP32-CAM and to Arduino Pro Minis with no issues at all. Also, check additional info: https://dronebotworkshop.com/esp32-cam-intro/ Also, on the Arduino IDE, make sure that you have installed via the Board Manager the ESP32 boards (the one by "Expressif Systems"), and for the board, make sure you've selected "AI Thinker ESP32-CAM" board. Hope this helps! |
Bro just try to press boot button, keep press, connect with usb-c cable to the pc and then release the boot button, and now try to uploade a simple code with a Serial.println("...") in the loop with a delay(3000) .the code should be uploaded in the esp32 and in the serial monitor should compare the correct output. |
How exactly did you do it? |
No, no resistors on the 5V input!!! You need a usb to UART converter to program the vanilla" esp32 cam (like cp2012, you'll find them for cheap online on any marketplace) Check my pic and description, each cable color says where is connected to the esp32 |
Iam also facing same issue |
Fatal error ..cannot connect to esp32 .no serial data received |
Can any one resolve this |
Try to press boot button, connect the esp32 and now release the boot button and try to upload the code. |
I fixed it - I first installed the driver for CP2102 for windows 10 |
I tried every solution posted here but nothing worked, then I noticed the board doesn't reset when I press the "EN" push-button, so I shorted the EN pin (reset) to ground pin with a jumper wire, that's when the MCU was actually reset and displayed the boot message on the serial terminal, followed by erasing the flash using esptool and everything worked fine afterwards. I have no explanation why that happen or how the solution works. |
when you just open the serial monitor to the board and hit EN, do you see output on the serial? One option is not to get output and the other is that the board is not properly resetting. Start with checking the Serial output, then if that is OK, disconnect, press and hold BOOT, then while holding, press and release EN and keep holding the BOOT. Start upload (do not release BOOT) and see if it goes through. |
Pull-up resistors for EN and BOOT should be added. 4.7K-10K should be OK. |
I just added them and still the same.
I opened the serial monitor in Arduino, connected the board (windows made the silly noise that it is connected), pressed the BOOT/EN in all combinations and nothing happened. Also tried programming and still the same message. I am guessing a harware issue and that I am only getting a connection to the CP2102 ... but thats just a guess. |
Guys ... found the mistake. Thanks for your comments. |
Alhamdulillah, I've find the solution. In my case this can be fixed by plug your USB cable into the different side port of your laptop/pc. For example when I attach the cable into the left side port of my laptop, the problem appears. When I plug the cable into the right side port of my laptop, the issue is no longer there. |
In my case, I short circuit pin ΤΧ0 with EN pin and then it started work normally again. |
aftef a short circuit the esp has stoped over heating but it still does not upload code |
USBポートが他のサービスと競合している場合があります。そのサービスを削除すれば解決します。 |
The USB port may be in conflict with another service. Removing that service will resolve the issue. |
I found the following solution that I haven't read about before. For my board, it was the reset button on the ESP32-CAM board that was shorted. The solution was to simply desolder the button. If you have a multimeter at hand, you can easily test this.
If VIN is 3.3 V but EN is 0 V, then the resest button is possibly shorted (reset button pulls EN low to reboot the ESP).
If the button is shorted, then simply desoldering it might be the solution. It worked for me at least. Glad I didn't spend money on a new one before I fixed this one. :) Note that the reset button on the ESP-CAM-MB will still work after this. |
For me the solution was to connect GND next to 5V pin and not in any other GND pins of the board... |
For my board, the voltage between GND and EN is 5V, and voltage between VIN and GND is 5V, the problem still exists |
Board
ESP32 s
Device Description
On Arduino UNO
Hardware Configuration
no
Version
v2.0.1
IDE Name
Arduino
Operating System
Windows 10
Flash frequency
40
PSRAM enabled
yes
Upload speed
115200
Description
Failed to connect to ESP32: No serial data received.
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: