Skip to content

Commit 6481af5

Browse files
close openOCD after jtag flash end (#1601)
1 parent e9d5598 commit 6481af5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/flash/jtagCmd.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ export async function jtagFlashCommand(workspace: Uri) {
8181
const msg = "⚡️ Flashed Successfully (JTAG)";
8282
OutputChannel.appendLineAndShow(msg, "Flash");
8383
Logger.infoNotify(msg);
84+
const closingOpenOCDMsg = "Closing OpenOCD server connection...";
85+
OutputChannel.appendLineAndShow(closingOpenOCDMsg, "Flash");
86+
OpenOCDManager.init().stop();
8487
} catch (msg) {
8588
OpenOCDManager.init().showOutputChannel(true);
8689
OutputChannel.appendLine(msg, "Flash");

0 commit comments

Comments
 (0)