From b1da97756a1ab58812ff2935ebaf889b614e4abd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82n=20=C4=90o=C3=A0n?= <33853760+andoan16@users.noreply.github.com> Date: Sun, 31 May 2026 09:28:17 +0700 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20resolve=20#706=20=E2=80=94=20"No=20c?= =?UTF-8?q?ommunication=20port=20specified"=20when=20using=20ST=20LINK=20V?= =?UTF-8?q?2=20debugger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #706 Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com> --- docs/ports/debugger-port.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/ports/debugger-port.ts b/docs/ports/debugger-port.ts index cccf85eae..9b9d06080 100644 --- a/docs/ports/debugger-port.ts +++ b/docs/ports/debugger-port.ts @@ -36,6 +36,14 @@ import type { } from './types' export interface DebuggerPort { + /** + * Get list of available debug ports/devices. + * Includes standard COM ports and special devices like ST-LINK V2. + * Used by the port selection UI to show available debug targets. + */ + getAvailablePorts?(): Promise> + + /** /** * Connect to a debug target. * The adapter resolves the actual transport (TCP, RTU, WebSocket, WebRTC, simulator) From 9add79fa6da0c504b6d31b88ca324bc46b30dadd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=82n=20=C4=90o=C3=A0n?= <33853760+andoan16@users.noreply.github.com> Date: Sun, 31 May 2026 09:28:18 +0700 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20resolve=20#706=20=E2=80=94=20"No=20c?= =?UTF-8?q?ommunication=20port=20specified"=20when=20using=20ST=20LINK=20V?= =?UTF-8?q?2=20debugger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #706 Signed-off-by: Ân Đoàn <33853760+andoan16@users.noreply.github.com> --- docs/ports/device-port.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/ports/device-port.ts b/docs/ports/device-port.ts index 4ceb9e0b6..ded940baa 100644 --- a/docs/ports/device-port.ts +++ b/docs/ports/device-port.ts @@ -36,6 +36,11 @@ export interface DevicePort { * Editor: queries local system serial ports. * Web: may not be applicable locally (ports come from remote device). */ + /** + * Get available serial/communication ports. + * Editor: queries local system serial ports and USB devices (e.g., ST-LINK V2). + * Web: may not be applicable locally (ports come from remote device). + */ getCommunicationPorts(): Promise /** @@ -50,6 +55,11 @@ export interface DevicePort { * Editor: re-scans local system serial ports. * Web: re-queries orchestrator for available ports. */ + /** + * Refresh communication ports list. + * Editor: re-scans local system serial ports and USB devices. + * Web: re-queries orchestrator for available ports. + */ refreshCommunicationPorts(): Promise /**