Skip to content

Commit 543d8cd

Browse files
committed
Halt after image download
1 parent a073028 commit 543d8cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cmsis-debug-session.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,6 @@ export class CmsisDebugSession extends GDBDebugSession {
240240
await mi.sendTargetAsyncOn(this.gdb);
241241
await mi.sendTargetSelectRemote(this.gdb, remote);
242242
await mi.sendMonitorResetHalt(this.gdb);
243-
await this.gdb.sendEnablePrettyPrint();
244243
this.sendEvent(new OutputEvent(`Attached to debugger on port ${port}`));
245244

246245
// Download image
@@ -251,6 +250,10 @@ export class CmsisDebugSession extends GDBDebugSession {
251250
this.gdbServer.off('progress', progressListener);
252251
progressListener(100);
253252

253+
// Halt after image download
254+
await mi.sendMonitorResetHalt(this.gdb);
255+
await this.gdb.sendEnablePrettyPrint();
256+
254257
if (args.runToMain === true) {
255258
await mi.sendBreakOnFunction(this.gdb);
256259
}

0 commit comments

Comments
 (0)