From d0a0299eb57c5ba103cb17e8bdfae622d098a4b2 Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Tue, 7 Nov 2023 11:11:41 -0500 Subject: [PATCH] Fix Cortex-M Debug launch commands --- .vscode/launch.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 43c44ff4c5..1d0d4d7103 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -20,10 +20,28 @@ "servertype": "jlink", "device": "R7S721020", "interface": "swd", - "runToEntryPoint": "main", + //"runToEntryPoint": "main", "svdFile": "${workspaceRoot}/contrib/rza1.svd", + "overrideLaunchCommands": [ + "load" + ], + "overrideResetCommands": [ + "monitor reset", + "load" + ], + "overrideRestartCommands": [ + "jump start" + ], "rttConfig": { "enabled": true, + "address": "auto", + "decoders": [ + { + "port": 0, + "timestamp": true, + "type": "console" + } + ] }, }, { @@ -160,7 +178,7 @@ "type": "lldb", "request": "launch", "targetCreateCommands": [ - "target create ${workspaceFolder}/build/debug/deluge7SEG.elf" + "target create ${workspaceFolder}/build/Debug/deluge.elf" ], "processCreateCommands": [ "gdb-remote localhost:3333"