From 9b6ed04199d3552b85705098500f5c1274f313ab Mon Sep 17 00:00:00 2001 From: SergeiSOficial Date: Mon, 4 Oct 2021 15:35:16 +0300 Subject: [PATCH] Added files to run IAR from VScode Editor --- .gitignore | 10 ++++++++++ .vscode/extensions.json | 13 ++++++++++++ .vscode/launch.json | 23 ++++++++++++++++++++++ .vscode/settings.json | 13 ++++++++++++ .vscode/tasks.json | 21 ++++++++++++++++++++ Huawei_LiteOS.code-workspace | 38 ++++++++++++++++++++++++++++++++++++ 6 files changed, 118 insertions(+) create mode 100644 .gitignore create mode 100644 .vscode/extensions.json create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json create mode 100644 Huawei_LiteOS.code-workspace diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3f5ee25 --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +/Projects/EWARM/cortex-m4/stm32f411/Application +*.dnx +*.xcl +*.ps1 +*.bat +*.wsdt +/.vscode/c_cpp_properties.json +/.vscode/iar-vsc.json +*.cortex-debug.peripherals.state.json +*.cortex-debug.registers.state.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..af3ccf5 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,13 @@ +{ + "recommendations": [ + "pluyckx.iar-vsc", + "cschlosser.doxdocgen", + "marus25.cortex-debug", + "marus25.cortex-debug-dp-stm32l4", + "guillaumelegrain.vscode-icf-syntax", + "ban.spellright", + "ms-vsliveshare.vsliveshare", + "austin.code-gnu-global", + "ms-vscode.cpptools" + ] +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7cc6cfe --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,23 @@ +{ + // 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": [ + { + "showDevDebugOutput": true, + "cwd": "${workspaceRoot}", + "executable": "./Projects/EWARM/cortex-m4/stm32f411/Application/ExeHuawei_LiteOS.out", + "name": "Debug STM32", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "armToolchainPath": "C:/Program Files (x86)/GNU Tools ARM Embedded/8 2018-q4-major/bin/",//insert your path to https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm + "device": "stlink", + "configFiles": [ + "interface/stlink.cfg", + "target/stm32f4x.cfg" + ] + } + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..21484bf --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,13 @@ +{ + "stm32-for-vscode.openocdPath": "c:\\Program Files (x86)\\OpenOCD\\bin\\openocd.exe", + "cortex-debug.openocdPath": "c:\\Program Files (x86)\\OpenOCD\\bin\\openocd.exe", + "spellright.language": [ + "en" + ], + "spellright.documentTypes": [ + "markdown", + "latex", + "plaintext", + "c" + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..8347547 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,21 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "iar", + "command": "build", + "project": "${command:iar-settings.project-file}", + "config": "${command:iar-settings.project-configuration}", + "builder": "${command:iar-settings.workbench}/common/bin/IarBuild.exe", + "label": "iar: Iar Build", + "problemMatcher": [ + "$iar-cc", + "$iar-linker" + ], + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file diff --git a/Huawei_LiteOS.code-workspace b/Huawei_LiteOS.code-workspace new file mode 100644 index 0000000..5068b67 --- /dev/null +++ b/Huawei_LiteOS.code-workspace @@ -0,0 +1,38 @@ +{ + "folders": [ + { + "path": "." + } + ], + "settings": { + "stm32-for-vscode.openocdPath": "c:\\Program Files (x86)\\OpenOCD\\bin\\openocd.exe", + "cortex-debug.openocdPath": "c:\\Program Files (x86)\\OpenOCD\\bin\\openocd.exe", + "files.associations": { + "algorithm": "cpp", + "limits": "cpp", + "nbfi_hal.h": "c", + "tim.h": "c", + "wvt_dsp.h": "c", + "adc.h": "c", + "scheduler_hal.h": "c", + "wvt_calibandlin.h": "c", + "dma.h": "c", + "iwdg.h": "c", + "usart.h": "c", + "tsc.h": "c", + "cb.h": "c", + "meter.h": "c", + "radio.h": "c", + "water7.h": "c", + "wvt_leakandbreak.h": "c", + "wvt_ultrasound.h": "c", + "CN91C4S96.h": "c", + "main.h": "c", + "iutility": "c", + "xmemory": "c", + "xstddef": "c", + "xutility": "c", + "new": "c" + } + } +} \ No newline at end of file