diff --git a/.vscode/launch.json b/.vscode/launch.json index 562872b..10db1b5 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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, diff --git a/openocd.cfg b/openocd.cfg index 000986e..8686289 100644 --- a/openocd.cfg +++ b/openocd.cfg @@ -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]