From 3ef368ae5a50174bd24fba1da976152020cde888 Mon Sep 17 00:00:00 2001 From: Andrey Perminov Date: Wed, 30 Jun 2021 12:36:11 -0700 Subject: [PATCH] Added .vscode --- .vscode/launch.json | 30 ++++++++++++++++ .vscode/tasks.json | 83 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..14567a8 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + // 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": "Cortex Debug stm32wb55", + "cwd": "${workspaceRoot}", + "executable": "${workspaceRoot}/BMLite_examples/out/embedded_app/stm32wb55/embedded_app", + "request": "launch", + "type": "cortex-debug", + "servertype": "jlink", + "device": "STM32WB55xx", + "interface": "swd", + "runToMain": true, + } + { + "name": "Cortex Debug nRF52840", + "cwd": "${workspaceRoot}", + "executable": "${workspaceRoot}/BMLite_examples/out/embedded_app/nRF52840/embedded_app", + "request": "launch", + "type": "cortex-debug", + "servertype": "jlink", + "device": "nRF52840_xxAA", + "interface": "swd", + "runToMain": true, + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..2ce5310 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,83 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "type": "shell", + "label": "wb55 make", + "command": "make", + "args": ["-j4", "-C", "BMLite_examples", "PLATFORM=stm32wb55", "APP=embedded_app", "DEBUG=y"], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": { + "base": "$gcc", + "fileLocation": ["relative", "${workspaceFolder}"] + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "type": "shell", + "label": "wb55 make clean", + "command": "make", + "args": ["-C", "BMLite_examples", "PLATFORM=stm32wb55", "APP=embedded_app", "clean"], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": { + "base": "$gcc", + "fileLocation": ["relative", "${workspaceFolder}", "absolute"] + }, + "group": "build" + }, + { + "type": "shell", + "label": "nRF52840 make", + "command": "make", + "args": ["-j4", "-C", "BMLite_examples", "PLATFORM=nRF52840", "APP=embedded_app", "DEBUG=y"], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": { + "base": "$gcc", + "fileLocation": ["relative", "${workspaceFolder}"] + }, + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "type": "shell", + "label": "nRF52840 make clean", + "command": "make", + "args": ["-C", "BMLite_examples", "PLATFORM=nRF52840", "APP=embedded_app", "clean"], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": { + "base": "$gcc", + "fileLocation": ["relative", "${workspaceFolder}", "absolute"] + }, + "group": "build" + }, + { + "type": "shell", + "label": "make clean", + "command": "make", + "args": ["-C", "BMLite_examples", "clean_all"], + "options": { + "cwd": "${workspaceFolder}" + }, + "problemMatcher": { + "base": "$gcc", + "fileLocation": ["relative", "${workspaceFolder}", "absolute"] + }, + "group": "build" + }, + ] +} \ No newline at end of file