debugging in vscode 🎉 (#1942)
This commit is contained in:
parent
bb8650179c
commit
07d6b8e1b5
|
@ -14,7 +14,7 @@ doxygen/
|
||||||
/.idea
|
/.idea
|
||||||
workspace.xml
|
workspace.xml
|
||||||
java_console_binary
|
java_console_binary
|
||||||
.vscode
|
.vscode/.*
|
||||||
*.cmp
|
*.cmp
|
||||||
*.net
|
*.net
|
||||||
err.txt
|
err.txt
|
||||||
|
|
|
@ -15,3 +15,6 @@
|
||||||
[submodule "hardware/InteractiveHtmlBom"]
|
[submodule "hardware/InteractiveHtmlBom"]
|
||||||
path = hardware/InteractiveHtmlBom
|
path = hardware/InteractiveHtmlBom
|
||||||
url = https://github.com/openscopeproject/InteractiveHtmlBom.git
|
url = https://github.com/openscopeproject/InteractiveHtmlBom.git
|
||||||
|
[submodule "firmware/ext/cmsis-svd"]
|
||||||
|
path = firmware/ext/cmsis-svd
|
||||||
|
url = https://github.com/posborne/cmsis-svd
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"marus25.cortex-debug",
|
||||||
|
"Gruntfuggly.todo-tree",
|
||||||
|
"ms-vscode.cpptools"
|
||||||
|
]
|
||||||
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "(gdb) Launch",
|
"name": "Debug Unit Tests",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/unit_tests/build/rusefi_test",
|
"program": "${workspaceFolder}/unit_tests/build/rusefi_test",
|
||||||
|
@ -23,6 +23,32 @@
|
||||||
"ignoreFailures": true
|
"ignoreFailures": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
{
|
||||||
|
"name": "Debug F40x",
|
||||||
|
"type": "cortex-debug",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
|
||||||
|
"device": "STM32F407V",
|
||||||
|
"v1": false,
|
||||||
|
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/data/STMicro/STM32F405.svd",
|
||||||
|
"servertype": "openocd",
|
||||||
|
"configFiles": ["interface/stlink.cfg", "target/stm32f4x.cfg"],
|
||||||
|
"runToMain": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Debug F42x",
|
||||||
|
"type": "cortex-debug",
|
||||||
|
"request": "launch",
|
||||||
|
"cwd": "${workspaceFolder}",
|
||||||
|
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
|
||||||
|
"device": "STM32F429Z",
|
||||||
|
"v1": false,
|
||||||
|
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/data/STMicro/STM32F427.svd",
|
||||||
|
"servertype": "openocd",
|
||||||
|
"configFiles": ["interface/stlink.cfg", "target/stm32f4x.cfg"],
|
||||||
|
"runToMain": true
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||||
|
// for the documentation about the tasks.json format
|
||||||
|
"version": "2.0.0",
|
||||||
|
"tasks": [
|
||||||
|
{
|
||||||
|
"label": "Build Firmware (Frankenso/default)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make -j12",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}/firmware"
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build Firmware (Proteus F4)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make -j12 PROJECT_BOARD=proteus",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}/firmware"
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build Firmware (microRusEfi F4)",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make -j12 PROJECT_BOARD=microrusefi",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}/firmware"
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Build Unit Tests",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "make -j12",
|
||||||
|
"options": {
|
||||||
|
"cwd": "${workspaceRoot}/unit_tests"
|
||||||
|
},
|
||||||
|
"problemMatcher": [],
|
||||||
|
"group": {
|
||||||
|
"kind": "build",
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit e5db2387d9c48359c9c5229a5bb436cf2ed5381f
|
Loading…
Reference in New Issue