From e49d7bdf8ad8b0af4565f14a07f9938180761ea2 Mon Sep 17 00:00:00 2001 From: Gaweringo <40121865+Gaweringo@users.noreply.github.com> Date: Fri, 2 Jan 2026 17:29:36 +0100 Subject: [PATCH] fix(stlink): pass value of `targetProcessor` to `-m` flag --- src/stlink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stlink.ts b/src/stlink.ts index 97923778..8a89d9c2 100755 --- a/src/stlink.ts +++ b/src/stlink.ts @@ -265,7 +265,7 @@ export class STLinkServerController extends EventEmitter implements GDBServerCon } serverargs.push('--halt'); // Need this for reset to work as expected (perform a halt) if (this.targetProcessor > 0) { - serverargs.push('-m', `this.targetProcessor`); + serverargs.push('-m', `${this.targetProcessor}`); } if (this.args.serverArgs) {