From 6097fce59659bf1ebcd55b01cc34d1b7ebca6347 Mon Sep 17 00:00:00 2001 From: bartool Date: Fri, 16 May 2025 19:36:48 +0200 Subject: [PATCH] add preset to upload frimware --- .vscode/tasks.json | 29 +++++++++++++++++++++++++++++ CMakePresets.json | 8 ++++++++ 2 files changed, 37 insertions(+) create mode 100644 .vscode/tasks.json diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..46474b6 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,29 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cmake", + "label": "CMake: build", + "command": "build", + "targets": [ + "all" + ], + "preset": "${command:cmake.activeBuildPresetName}", + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [], + "detail": "Build project using CMake Release preset" + }, + { + "type": "cmake", + "label": "CMake: flash", + "command": "build", + "preset": "flash", + "group": "none", + "problemMatcher": [], + "detail": "Flash firmware to microcontroller using CMake flash preset" + } + ] +} \ No newline at end of file diff --git a/CMakePresets.json b/CMakePresets.json index 3accd26..033ecd0 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -21,6 +21,14 @@ { "name": "Release", "configurePreset": "Release" + }, + { + "name": "flash", + "configurePreset": "Release", + "targets": [ + "flash" + ], + "description": "Build and flash firmware to AVR" } ] } \ No newline at end of file