Adapt launch config to periCORE3 dev board
This commit is contained in:
parent
4ff7ad8748
commit
46382e2cf7
22
.vscode/launch.json
vendored
22
.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",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "gdb Launch Debug",
|
"name": "gdb Launch Debug",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
|
"args": [],
|
||||||
"program": "${workspaceFolder}/_build/firmware.elf",
|
"program": "${workspaceFolder}/_build/firmware.elf",
|
||||||
"args": [
|
|
||||||
"-d","${workspaceFolder}/Core/Src",
|
|
||||||
"-d","${workspaceFolder}/Core/Startup",
|
|
||||||
"-d","${workspaceFolder}/Core/Drivers",
|
|
||||||
],
|
|
||||||
"stopAtEntry": true,
|
"stopAtEntry": true,
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"environment": [],
|
"environment": [],
|
||||||
"externalConsole": false,
|
"externalConsole": false,
|
||||||
"MIMode": "gdb",
|
"MIMode": "gdb",
|
||||||
"miDebuggerPath": "/usr/bin/arm-none-eabi-gdb",
|
"miDebuggerPath": "/usr/local/bin/arm-none-eabi-gdb",
|
||||||
"debugServerPath": "openocd",
|
"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,
|
"serverLaunchTimeout": 20000,
|
||||||
"filterStderr": true,
|
"filterStderr": true,
|
||||||
"filterStdout": false,
|
"filterStdout": false,
|
||||||
"serverStarted": "Info : Listening on port 3333 for gdb connections",
|
"serverStarted": "Info : Listening on port 3333 for gdb connections",
|
||||||
// "sourceFileMap": {
|
|
||||||
// "/work/":"${workspaceFolder}"
|
|
||||||
// },
|
|
||||||
"sourceFileMap": {
|
"sourceFileMap": {
|
||||||
"${workspaceRoot}":"${workspaceFolder}"
|
"${workspaceRoot}":"${workspaceFolder}"
|
||||||
},
|
},
|
||||||
@ -61,7 +51,7 @@
|
|||||||
"text": "load",
|
"text": "load",
|
||||||
"ignoreFailures": false
|
"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