create project
This commit is contained in:
12
.vscode/c_cpp_properties.json
vendored
Normal file
12
.vscode/c_cpp_properties.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "STM32",
|
||||
"defines": [],
|
||||
"intelliSenseMode": "linux-gcc-arm",
|
||||
"configurationProvider": "ms-vscode.makefile-tools",
|
||||
"compileCommands": "${workspaceFolder}/build/Debug/compile_commands.json"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
25
.vscode/launch.json
vendored
Normal file
25
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "STM32 Debug",
|
||||
"type": "cortex-debug",
|
||||
"request": "launch",
|
||||
"servertype": "openocd",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"executable": "${workspaceRoot}/build/Debug/STM32_HAL_Template.elf",
|
||||
// "device": "STM32H743",
|
||||
"liveWatch": {
|
||||
"enabled": true,
|
||||
"samplesPerSecond": 4
|
||||
},
|
||||
"configFiles": [
|
||||
"${workspaceFolder}/ocd.cfg"
|
||||
],
|
||||
"svdFile": "${workspaceFolder}/STM32H743.svd",
|
||||
"runToEntryPoint": "main",
|
||||
"gdbPath": "/home/capacake/workspace/toolchain/arm-gnu-toolchain-14.2.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb",
|
||||
"preLaunchTask": "Build"
|
||||
}
|
||||
]
|
||||
}
|
||||
4
.vscode/settings.json
vendored
Normal file
4
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"C_Cpp.codeAnalysis.clangTidy.enabled": false,
|
||||
"memory-view.tracking.duplicateDebuggerMemoryViews": false,
|
||||
}
|
||||
80
.vscode/tasks.json
vendored
Normal file
80
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Configure CMake",
|
||||
"type": "shell",
|
||||
"command": "cmake",
|
||||
"args": [
|
||||
"--preset",
|
||||
"${input:build_type}"
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"type": "shell",
|
||||
"command": "cmake",
|
||||
"args": [
|
||||
"--build",
|
||||
"--preset",
|
||||
"${input:build_type}",
|
||||
"--parallel"
|
||||
],
|
||||
"group": {
|
||||
"kind": "build"
|
||||
},
|
||||
"dependsOn": [
|
||||
"Configure CMake"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Clean",
|
||||
"type": "shell",
|
||||
"command": "cmake",
|
||||
"args": [
|
||||
"--build",
|
||||
"build/${input:build_type}",
|
||||
"--target",
|
||||
"clean"
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Flash (OpenOCD)",
|
||||
"type": "shell",
|
||||
"command": "openocd",
|
||||
"args": [
|
||||
"-s",
|
||||
"/usr/share/openocd/scripts",
|
||||
"-f",
|
||||
"${workspaceFolder}/ocd.cfg",
|
||||
"-c",
|
||||
"tcl_port disabled",
|
||||
"-c",
|
||||
"gdb_port disabled",
|
||||
"-c",
|
||||
"program ${workspaceFolder}/build/${input:build_type}/${workspaceFolderBasename}.elf verify reset",
|
||||
"-c",
|
||||
"shutdown"
|
||||
],
|
||||
"group": "build",
|
||||
"dependsOn": [
|
||||
"Build"
|
||||
]
|
||||
},
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "build_type",
|
||||
"type": "pickString",
|
||||
"options": [
|
||||
"Debug",
|
||||
"Release"
|
||||
],
|
||||
"description": "选择构建类型 (Select Build Type)",
|
||||
"default": "Debug"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user