# ESP 32 Fatal Error

**URL:** <https://forum.arduino.cc/t/esp-32-fatal-error/1379483>\
**Category:** Uploading\
**Created:** [May 6, 2025, 1:23pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483 "2025-05-06T13:23:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolfast800](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lolfast800/32/1208881_2.png) [@lolfast800](https://forum.arduino.cc/u/lolfast800)\
**Post date:** [May 6, 2025, 1:23pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/1 "2025-05-06T13:23:53Z")

</div>

I'm Having a fatal error when uploading my code to the ESP32.  
Sketch uses 893410 bytes (68%) of program storage space. Maximum is 1310720 bytes.  
Global variables use 45060 bytes (13%) of dynamic memory, leaving 282620 bytes for local variables. Maximum is 327680 bytes.  
esptool.py v4.8.1  
Serial port COM5

A fatal error occurred: Could not open COM5, the port is busy or doesn't exist.  
(could not open port 'COM5': OSError(22, 'The semaphore timeout period has expired.', None, 121))

Failed uploading: uploading error: exit status 2

This is my error code.  
I don't understand what to do.

---

<div class="post-metadata">

**Author:** ![Dave\_Lowther](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dave_lowther/32/1092885_2.png) [@Dave\_Lowther](https://forum.arduino.cc/u/Dave_Lowther)\
**Post date:** [May 6, 2025, 2:30pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/2 "2025-05-06T14:30:22Z")

</div>

> [@lolfast800](#):
>
> A fatal error occurred: Could not open COM5, the port is busy or doesn't exist.

Is your ESP32 on COM5? You can check in device manager:

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/f/a/d/fad5737a7cde860c93a2c268229bceb6699165a9.png)  
If your ESP32 is COM5, then when it's plugged into your PC's USB port you should see COM5 in the list, and when you unplug it, it should disappear from the list.  
If it is showing up correctly in device manager then check that the serial monitor / plotter are not open. IIRC some versions of the IDE give that error when the serial monitor is open and an upload is attempted.  
If that doesn't fix it then check nothing else is using COM5. It's unlikely, but if e.g. you have some other code running that's opened COM5, that would also cause the problem.

---

<div class="post-metadata">

**Author:** ![sonofcy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sonofcy/32/1283617_2.png) [@sonofcy](https://forum.arduino.cc/u/sonofcy)\
**Post date:** [May 6, 2025, 2:31pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/3 "2025-05-06T14:31:37Z")

</div>

What OS? It is much more likely that this is due to the native OS messing up, but we have nothing to work on. Maybe provide the normal data.

---

<div class="post-metadata">

**Author:** ![sterretje](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sterretje/32/391294_2.png) [@sterretje](https://forum.arduino.cc/u/sterretje)\
**Post date:** [May 6, 2025, 4:38pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/4 "2025-05-06T16:38:05Z")

</div>

> [@lolfast800](#):
>
> ESP32

Some ESP32 based board (which one exactly) or the Arduino Nano ESP32?

---

<div class="post-metadata">

**Author:** ![lolfast800](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/lolfast800/32/1208881_2.png) [@lolfast800](https://forum.arduino.cc/u/lolfast800)\
**Post date:** [May 7, 2025, 6:49pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/5 "2025-05-07T18:49:16Z")

</div>

I have checked the Ports and it doesn't show up as any COM.

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/1/b/7/1b7d72faa9da160c05d381f53a03d73a4cef6c1a.png)  
It shows up in Other Devices with an error. Has this ever happened to you? I don't exactly know what to do to fix this issue.

---

<div class="post-metadata">

**Author:** ![Dave\_Lowther](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/dave_lowther/32/1092885_2.png) [@Dave\_Lowther](https://forum.arduino.cc/u/Dave_Lowther)\
**Post date:** [May 7, 2025, 7:03pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/6 "2025-05-07T19:03:58Z")

</div>

> [@lolfast800](#):
>
> It shows up in Other Devices with an error

I guess you don't have the driver installed for CP2102, but that's only a guess.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [November 3, 2025, 7:04pm UTC](https://forum.arduino.cc/t/esp-32-fatal-error/1379483/7 "2025-11-03T19:04:18Z")

</div>

Closed on November 3, 2025, 7:04pm UTC

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