yuysh b1d8588a23 fix: use shared (non-exclusive) COM port access on Windows
pyserial opens COM ports with dwShareMode=0 (exclusive) by default.
On Windows 10/11 this can cause PermissionError(13) even when the port
is not visibly occupied — the OS may have an internal handle.

Added _open_port() helper that tries exclusive=False (FILE_SHARE_READ|
FILE_SHARE_WRITE) first on Windows, falling back to exclusive if
pyserial < 3.3. Applied to all 7 serial.Serial() call sites across
serial_monitor, reboot_manager, widgets.
2026-06-12 09:39:18 +08:00
S
Description
Zynq Bootloader下载验证工具
1.1 MiB
Languages
Python 99.4%
Batchfile 0.6%