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
|
||||
}
|
||||
52
.vscode/launch.json
vendored
Normal file
52
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "probe-rs-debug",
|
||||
"request": "launch",
|
||||
"name": "probe",
|
||||
"cwd": "${workspaceFolder}",
|
||||
//!MODIFY (or remove)
|
||||
// "speed": 24000,
|
||||
//!MODIFY (or remove)
|
||||
// "probe": "VID:PID:<Serial>",
|
||||
"runtimeExecutable": "probe-rs",
|
||||
// "runtimeArgs": ["dap-server"],
|
||||
|
||||
//!MODIFY
|
||||
"chip": "STM32H743II",
|
||||
"flashingConfig": {
|
||||
"flashingEnabled": true,
|
||||
"haltAfterReset": true,
|
||||
"formatOptions": {
|
||||
//Valid values are: 'bin', 'hex', 'elf'(default), 'idf'
|
||||
"binaryFormat": "elf"
|
||||
}
|
||||
},
|
||||
"coreConfigs": [
|
||||
{
|
||||
"coreIndex": 0,
|
||||
//!MODIFY
|
||||
"programBinary": "${workspaceFolder}/build/Debug/${workspaceFolderBasename}.elf",
|
||||
//!MODIFY
|
||||
"rttEnabled": true,
|
||||
"rttChannelFormats": [
|
||||
{
|
||||
"channelNumber": 0,
|
||||
"dataFormat": "String",
|
||||
"showTimestamps": false
|
||||
}
|
||||
],
|
||||
"svdFile": "${workspaceFolder}/STM32H743.svd"
|
||||
}
|
||||
],
|
||||
"preLaunchTask": "Build_Debug"
|
||||
// "env": {
|
||||
// // If you set this variable, check the VSCode console log window for the location of the log file.
|
||||
// "RUST_LOG": "info"
|
||||
// },
|
||||
// // Info, Debug
|
||||
// "consoleLogLevel": "Console",
|
||||
}
|
||||
]
|
||||
}
|
||||
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,
|
||||
}
|
||||
84
.vscode/tasks.json
vendored
Normal file
84
.vscode/tasks.json
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Configure CMake",
|
||||
"type": "shell",
|
||||
"command": "sh",
|
||||
"args": [
|
||||
"-c",
|
||||
"cmake --preset Debug && cmake --preset Release"
|
||||
],
|
||||
"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": "sh",
|
||||
"args": [
|
||||
"-c",
|
||||
"'cmake --build build/Debug --target clean && cmake --build build/Release --target clean'",
|
||||
],
|
||||
"group": "build",
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Flash",
|
||||
"type": "shell",
|
||||
"command": "probe-rs",
|
||||
"args": [
|
||||
"download",
|
||||
"--chip",
|
||||
"STM32H743II",
|
||||
"${workspaceFolder}/build/${input:build_type}/${workspaceFolderBasename}.elf",
|
||||
],
|
||||
"group": "build",
|
||||
"dependsOn": [
|
||||
"Build"
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "Build_Debug",
|
||||
"type": "shell",
|
||||
"command": "cmake",
|
||||
"args": [
|
||||
"--build",
|
||||
"--preset",
|
||||
"Debug",
|
||||
"--parallel"
|
||||
],
|
||||
"dependsOn": [
|
||||
"Configure CMake"
|
||||
]
|
||||
},
|
||||
],
|
||||
"inputs": [
|
||||
{
|
||||
"id": "build_type",
|
||||
"type": "pickString",
|
||||
"options": [
|
||||
"Debug",
|
||||
"Release"
|
||||
],
|
||||
"description": "选择构建类型 (Select Build Type)",
|
||||
"default": "Debug"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user