diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e9a90c4 --- /dev/null +++ b/.vscode/launch.json @@ -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", + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json index dc6b6f8..d5aad65 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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" } ] } \ No newline at end of file