From 59ce4493f0250e22ee77cf96773e55c27f0280e6 Mon Sep 17 00:00:00 2001 From: imi415 Date: Sat, 9 Apr 2022 01:49:58 +0800 Subject: [PATCH] Added Example VSC configs. --- .vscode.example/cmake-kits.json | 6 +++++ .vscode.example/launch.json | 46 +++++++++++++++++++++++++++++++++ .vscode.example/settings.json | 3 +++ 3 files changed, 55 insertions(+) create mode 100644 .vscode.example/cmake-kits.json create mode 100644 .vscode.example/launch.json create mode 100644 .vscode.example/settings.json diff --git a/.vscode.example/cmake-kits.json b/.vscode.example/cmake-kits.json new file mode 100644 index 0000000..04ebd1c --- /dev/null +++ b/.vscode.example/cmake-kits.json @@ -0,0 +1,6 @@ +[ + { + "name": "ARM GNU Embedded Toolchain", + "toolchainFile": "${workspaceRoot}/arm-none-eabi.cmake" + } +] \ No newline at end of file diff --git a/.vscode.example/launch.json b/.vscode.example/launch.json new file mode 100644 index 0000000..9048d56 --- /dev/null +++ b/.vscode.example/launch.json @@ -0,0 +1,46 @@ +{ + // 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": "Launch debug in FLASH", + "cwd": "${workspaceFolder}", + "executable": "cmake-build-Debug/lpcxpresso_55s69_template_FLASH.elf", + "request": "launch", + "type": "cortex-debug", + "runToEntryPoint": "main", + "showDevDebugOutput": "none", + "servertype": "pyocd", + "serverArgs": [ + "-t", + "lpc55s69" + ], + "numberOfProcessors": 2, + "targetProcessor":0, + "gdbPath": "arm-none-eabi-gdb" + }, + { + "name": "Launch debug in SRAM", + "cwd": "${workspaceFolder}", + "executable": "cmake-build-Debug/lpcxpresso_55s69_template_RAM.elf", + "request": "launch", + "type": "cortex-debug", + "runToEntryPoint": "main", + "servertype": "pyocd", + "serverArgs": [ + "-t", + "lpc55s69" + ], + "numberOfProcessors": 2, + "targetProcessor":0, + "gdbPath": "arm-none-eabi-gdb", + "overrideLaunchCommands": [ + "-interpreter-exec console \"monitor reset halt\"", + "-target-download", + "-enable-pretty-printing", + ], + } + ] +} \ No newline at end of file diff --git a/.vscode.example/settings.json b/.vscode.example/settings.json new file mode 100644 index 0000000..b4d8c35 --- /dev/null +++ b/.vscode.example/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools" +} \ No newline at end of file