vscode: Adapt launch configuration

This commit is contained in:
Thomas Klaehn 2022-11-16 10:02:47 +01:00
parent 103cbe1d6a
commit 1eee0af374
2 changed files with 3 additions and 7 deletions

2
.vscode/launch.json vendored
View File

@ -12,7 +12,7 @@
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "/usr/local/bin/arm-none-eabi-gdb",
"miDebuggerPath": "arm-none-eabi-gdb",
"debugServerPath": "openocd",
"debugServerArgs": "-f ${workspaceRoot}/openocd.cfg",
"serverLaunchTimeout": 20000,

View File

@ -1,6 +1,2 @@
# openocd setup for coprocessor using jlink interface and swd
source /usr/local/share/openocd/scripts/interface/jlink.cfg
transport select swd
source /usr/local/share/openocd/scripts/target/stm32g0x.cfg
source [find interface/stlink.cfg]
source [find target/stm32g0x.cfg]