Adapt launch config to periCORE3 dev board
This commit is contained in:
parent
4ff7ad8748
commit
46382e2cf7
18
.vscode/launch.json
vendored
18
.vscode/launch.json
vendored
@ -1,34 +1,24 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "gdb Launch Debug",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"args": [],
|
||||
"program": "${workspaceFolder}/_build/firmware.elf",
|
||||
"args": [
|
||||
"-d","${workspaceFolder}/Core/Src",
|
||||
"-d","${workspaceFolder}/Core/Startup",
|
||||
"-d","${workspaceFolder}/Core/Drivers",
|
||||
],
|
||||
"stopAtEntry": true,
|
||||
"cwd": "${workspaceRoot}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "/usr/bin/arm-none-eabi-gdb",
|
||||
"miDebuggerPath": "/usr/local/bin/arm-none-eabi-gdb",
|
||||
"debugServerPath": "openocd",
|
||||
"debugServerArgs": "-f /usr/local/share/openocd/scripts/interface/stlink.cfg -f /usr/local/share/openocd/scripts/target/stm32g0x.cfg",
|
||||
"debugServerArgs": "-f ${workspaceRoot}/openocd.cfg",
|
||||
"serverLaunchTimeout": 20000,
|
||||
"filterStderr": true,
|
||||
"filterStdout": false,
|
||||
"serverStarted": "Info : Listening on port 3333 for gdb connections",
|
||||
// "sourceFileMap": {
|
||||
// "/work/":"${workspaceFolder}"
|
||||
// },
|
||||
"sourceFileMap": {
|
||||
"${workspaceRoot}":"${workspaceFolder}"
|
||||
},
|
||||
@ -62,6 +52,6 @@
|
||||
"ignoreFailures": false
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
]
|
||||
}
|
6
openocd.cfg
Normal file
6
openocd.cfg
Normal file
@ -0,0 +1,6 @@
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user