Skip to content

"Monitor Device" cannot open the serial port (IDFGH-14892) #26

@shiinakaze

Description

@shiinakaze

Checklist

  • Checked the issue tracker for similar issues to ensure this is not a duplicate
  • Read the documentation to confirm the issue is not addressed there and your configuration is set correctly
  • Tested with the latest version to ensure the issue hasn't been fixed

How often does this bug occurs?

always

Expected behavior

turn on monitor, got a successful connection, close vscode, open vscode again, run idf.py monitor again, and see the permission error.

Actual behavior (suspected bug)

run monitor again, and see the connection error.

Error logs or terminal output

PS D:\Development\Workspace\esp32_workspace\hello_world> $env:IDF_PATH = 'C:\Users\ShiinaKaze\esp\v5.4\esp-idf';
PS D:\Development\Workspace\esp32_workspace\hello_world>  & 'C:\Users\ShiinaKaze\.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe' 'C:\Users\ShiinaKaze\esp\v5.4\esp-idf\tools\idf_monitor.py' -p COM15 -b 115200 --toolchain-prefix xtensa-esp32s3-elf- --make '''C:\Users\ShiinaKaze\.espressif\python_env\idf5.4_py3.11_env\Scripts\python.exe'' ''C:\Users\ShiinaKaze\esp\v5.4\esp-idf\tools\idf.py''' --target esp32s3 'd:\Development\Workspace\esp32_workspace\hello_world\build\hello_world.elf'

--- Warning: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM15 instead...
--- esp-idf-monitor 1.5.0 on \\.\COM15 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
could not open port '\\\\.\\COM15': PermissionError(13, '鎷掔粷璁块棶銆?, None, 5)
--- Connection to \\.\COM15 failed. Available ports:
COM15

Steps to reproduce the behavior

1.open project with vscode
2.open monitor
3.got a successful connection
4.close vscode
5.open vscode again
6.run monitor again
see the permission error.

Project release version

v1.5.0

System architecture

Intel/AMD 64-bit (modern PC, older Mac)

Operating system

Windows

Operating system version

Windows 11

Shell

PowerShell

Additional context

I've found background occupancy

Image

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions