The built-in terminal occupies the COM port

mikl604
Posts: 42
Joined: Thu Aug 24, 2023 3:15 pm

The built-in terminal occupies the COM port

Postby mikl604 » Wed Feb 12, 2025 6:21 am

Dear ESP developers!
There is a problem in ESP-IDE 3.1.0 with the 5.4 framework in Windows 11: the terminal built into the ESP-IDE automatically starts after the project is flashed on the same COM port. It's nice and convenient. But this terminal does not release the port later, even when you force it to disconnect or close it. In the terminal window, it says that the port is closed, but in fact it remains busy, and the next firmware of the project ends with the error "port cannot be opened". The only thing that helps is to force the removal of the "Python" task in the WINDOWS task Manager. And this should be done every time after the firmware! How do I make the built-in terminal release the port normally? Or how to disable this terminal altogether?

mikl604
Posts: 42
Joined: Thu Aug 24, 2023 3:15 pm

Re: The built-in terminal occupies the COM port

Postby mikl604 » Thu Feb 13, 2025 6:22 am

I'm probably not the only one who uses a bunch of WIN11 + IDE 3.1 + framework 5.4. Doesn't anyone else have this problem?

ESP_kondalkolipaka
Posts: 208
Joined: Wed Jul 17, 2019 5:26 pm

Re: The built-in terminal occupies the COM port

Postby ESP_kondalkolipaka » Mon Feb 17, 2025 12:21 pm

Hello,

While we investigate further why the port is getting blocked, you can avoid this issue by unchecking "Open Serial Monitor after Flashing" in the project’s Edit Configuration settings.

Please find the screenshot for reference. With this change, the serial monitor will not open automatically after flashing.
Screenshot 2025-02-17 at 5.47.26 PM.png
Screenshot 2025-02-17 at 5.47.26 PM.png (624.66 KiB) Viewed 1428 times
Thanks!

mikl604
Posts: 42
Joined: Thu Aug 24, 2023 3:15 pm

Re: The built-in terminal occupies the COM port

Postby mikl604 » Tue Feb 18, 2025 6:10 am

Thanks!

Who is online

Users browsing this forum: No registered users and 74 guests