mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2025-12-06 03:31:59 +01:00
env: add debug conf for vscode
This commit is contained in:
parent
ba5bf9c1ad
commit
608482a970
31
.vscode/launch.json
vendored
Normal file
31
.vscode/launch.json
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "OpenOCD-Debug",
|
||||
"type": "cortex-debug",
|
||||
"request": "launch",
|
||||
"servertype": "openocd",
|
||||
"executable": "build/ch.elf",
|
||||
"configFiles": [
|
||||
"interface/stlink.cfg",
|
||||
"target/stm32f0x.cfg"
|
||||
],
|
||||
"cwd": "${workspaceRoot}",
|
||||
"svdFile": "STM32F0x2.svd",
|
||||
"device": "stm32f0x",
|
||||
"preLaunchTask": "build",
|
||||
},
|
||||
{
|
||||
"name": "STLink-Debug",
|
||||
"type": "cortex-debug",
|
||||
"request": "launch",
|
||||
"servertype": "stutil",
|
||||
"executable": "build/ch.elf",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"svdFile": "STM32F0x2.svd",
|
||||
"device": "stm32f0x",
|
||||
"preLaunchTask": "build",
|
||||
}
|
||||
]
|
||||
}
|
||||
12
.vscode/tasks.json
vendored
12
.vscode/tasks.json
vendored
|
|
@ -2,19 +2,19 @@
|
|||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "make",
|
||||
"label": "build",
|
||||
"type": "shell",
|
||||
"command": "make",
|
||||
"group": "build"
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "flash",
|
||||
"type": "shell",
|
||||
"command": "make dfu flash",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
"group": "build"
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in a new issue