133 lines
2.7 KiB
Plaintext
133 lines
2.7 KiB
Plaintext
{
|
|
"folders": [
|
|
{
|
|
"path": "."
|
|
}
|
|
],
|
|
"settings": {
|
|
// Hush CMake
|
|
"cmake.configureOnOpen": false,
|
|
|
|
// IntelliSense
|
|
"C_Cpp.default.compilerPath": "${userHome}/zephyr-sdk-0.17.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc",
|
|
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
|
|
|
|
// File Associations
|
|
"files.associations": {
|
|
"waterlevel_sensor.h": "c",
|
|
"shell.h": "c",
|
|
"can.h": "c"
|
|
}
|
|
},
|
|
"tasks": {
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "West Build",
|
|
"type": "shell",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"command": "${userHome}/zephyrproject/.venv/bin/west",
|
|
"args": [
|
|
"build",
|
|
"-p",
|
|
"auto",
|
|
"-b",
|
|
"valve_node"
|
|
],
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
],
|
|
},
|
|
{
|
|
"label": "West Configurable Build",
|
|
"type": "shell",
|
|
"group": {
|
|
"kind": "build",
|
|
},
|
|
"command": "${userHome}/zephyrproject/.venv/bin/west",
|
|
"args": [
|
|
"build",
|
|
"-p",
|
|
"${input:pristine}",
|
|
"-b",
|
|
"${input:board}"
|
|
],
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
]
|
|
},
|
|
{
|
|
"label": "West Flash",
|
|
"type": "shell",
|
|
"command": "${userHome}/zephyrproject/.venv/bin/west",
|
|
"args": [
|
|
"flash"
|
|
],
|
|
"problemMatcher": [
|
|
"$gcc"
|
|
]
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "board",
|
|
"type": "promptString",
|
|
"default": "vave_node",
|
|
"description": "See https://docs.zephyrproject.org/latest/boards/index.html"
|
|
},
|
|
{
|
|
"id": "pristine",
|
|
"type": "pickString",
|
|
"description": "Choose when to run a pristine build",
|
|
"default": "auto",
|
|
"options": [
|
|
"auto",
|
|
"always",
|
|
"never"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"launch": {
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Launch",
|
|
"device": "STM32F103RB",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "build/zephyr/zephyr.elf",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
//"runToEntryPoint": "main",
|
|
"servertype": "jlink",
|
|
"gdbPath": "${userHome}/zephyr-sdk-0.17.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb",
|
|
"preLaunchTask": "West Build"
|
|
},
|
|
{
|
|
"name": "Attach",
|
|
"device": "STM32F103RB",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "build/zephyr/zephyr.elf",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
//"runToEntryPoint": "main",
|
|
"servertype": "jlink",
|
|
"gdbPath": "${userHome}/zephyr-sdk-0.17.1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gdb"
|
|
},
|
|
]
|
|
},
|
|
"extensions": {
|
|
"recommendations": [
|
|
"ms-vscode.cpptools-extension-pack",
|
|
"ms-python.python",
|
|
"ms-vscode.vscode-embedded-tools",
|
|
"ms-vscode.vscode-serial-monitor",
|
|
"marus25.cortex-debug",
|
|
"donjayamanne.python-environment-manager"
|
|
]
|
|
}
|
|
}
|