Vscode build/debug configs (#2394)

* f7/h7 debug config

* build configs
This commit is contained in:
Matthew Kennedy 2021-02-24 10:02:17 -10:00 committed by GitHub
parent 4e7e40ae00
commit 70c28a58b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 67 additions and 2 deletions

17
.vscode/launch.json vendored
View File

@ -66,9 +66,22 @@
"executable": "${workspaceRoot}/firmware/build/rusefi.elf", "executable": "${workspaceRoot}/firmware/build/rusefi.elf",
"device": "STM32F767V", "device": "STM32F767V",
"v1": false, "v1": false,
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/data/STMicro/STM32F7x6.svd", "svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/data/STMicro/STM32F7x7.svd",
"servertype": "openocd", "servertype": "openocd",
"configFiles": ["board/stm32f7discovery.cfg"], "configFiles": ["interface/stlink.cfg", "target/stm32f7x.cfg"],
"runToMain": true
},
{
"name": "Debug H743",
"type": "cortex-debug",
"request": "launch",
"cwd": "${workspaceFolder}",
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
"device": "STM32H743V",
"v1": false,
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/data/STMicro/STM32H743x.svd",
"servertype": "openocd",
"configFiles": ["interface/stlink.cfg", "target/stm32h7x.cfg"],
"runToMain": true "runToMain": true
} }
] ]

52
.vscode/tasks.json vendored
View File

@ -24,6 +24,45 @@
"cwd": "${workspaceRoot}/firmware" "cwd": "${workspaceRoot}/firmware"
}, },
"problemMatcher": [], "problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Firmware (Proteus F7)",
"type": "shell",
"command": "make -j16 PROJECT_BOARD=proteus PROJECT_CPU=ARCH_STM32F7",
"options": {
"cwd": "${workspaceRoot}/firmware"
},
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Firmware (Proteus H7) EXPERIMENTAL",
"type": "shell",
"command": "make -j16 PROJECT_BOARD=proteus PROJECT_CPU=ARCH_STM32H7",
"options": {
"cwd": "${workspaceRoot}/firmware"
},
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Firmware (hellen72)",
"type": "shell",
"command": "make -j16 PROJECT_BOARD=hellen/hellen72",
"options": {
"cwd": "${workspaceRoot}/firmware"
},
"problemMatcher": [],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true
@ -37,6 +76,19 @@
"cwd": "${workspaceRoot}/firmware" "cwd": "${workspaceRoot}/firmware"
}, },
"problemMatcher": [], "problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build Firmware (microRusEfi F7)",
"type": "shell",
"command": "make -j12 PROJECT_BOARD=microrusefi PROJECT_CPU=ARCH_STM32F7",
"options": {
"cwd": "${workspaceRoot}/firmware"
},
"problemMatcher": [],
"group": { "group": {
"kind": "build", "kind": "build",
"isDefault": true "isDefault": true