\$\begingroup\$
\$\endgroup\$
6
I am trying to upload code to my ESP32, but I keep getting the following error:
A fatal error occurred: Failed to connect to ESP32: Download mode successfully detected, but getting no sync reply: The serial TX path seems to be down. For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html Failed uploading: uploading error: exit status 2
What I've Tried
- Switched USB cables and ports.
- Pressed and held the BOOT button while uploading.
- Checked my drivers and confirmed the correct COM port is selected.
- Restarted my PC and tried again.
But it still didn't work
-
\$\begingroup\$ Try to do continuity test with multimeter. There might be path opened between the soc/module, serial-usb-converter, and usb port. I suspect the serial chip may be broken, usually. \$\endgroup\$Unknown123– Unknown1232025年03月15日 05:41:02 +00:00Commented Mar 15 at 5:41
-
\$\begingroup\$ When was the last time it worked? What did you do before it stopped working? If this is about how to use ESP32 with a PC then this might be a product usage question. \$\endgroup\$Justme– Justme2025年03月15日 08:07:56 +00:00Commented Mar 15 at 8:07
-
\$\begingroup\$ @Justme It worked perfectly two weeks ago, but I had to stop working on my project due to medical reasons. When I returned, I noticed my code was corrupted. I confirmed this because I had set some Serial Monitor output, but it now displays random, corrupted text. I tried re-uploading the code to fix it, but then this problem appeared. \$\endgroup\$Yax Patel– Yax Patel2025年03月15日 10:07:59 +00:00Commented Mar 15 at 10:07
-
\$\begingroup\$ @YaxPatel All it takes is one loose wire somewhere, or unpowered component hanging on a bootstrap pin preventing normal operation of running your code. \$\endgroup\$Justme– Justme2025年03月15日 10:43:33 +00:00Commented Mar 15 at 10:43
-
\$\begingroup\$ @Justme That's why I tried re-uploading the code with no wires connected, but it still didn't work. \$\endgroup\$Yax Patel– Yax Patel2025年03月15日 10:49:09 +00:00Commented Mar 15 at 10:49
lang-c