2020-03-26 05:02:37 -07:00
|
|
|
{
|
|
|
|
// Use IntelliSense to learn about possible attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
2020-12-05 20:21:17 -08:00
|
|
|
"name": "Debug Unit Tests (gdb)",
|
2020-03-26 05:02:37 -07:00
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/unit_tests/build/rusefi_test",
|
|
|
|
// uncomment args below to only debug a particular test
|
|
|
|
//"args": ["--gtest_filter=etb.testTargetTpsIsFloatBug945"],
|
|
|
|
"stopAtEntry": false,
|
2021-05-09 06:17:44 -07:00
|
|
|
"cwd": "${workspaceFolder}/unit_tests/",
|
2020-03-26 05:02:37 -07:00
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
]
|
2020-11-11 17:36:15 -08:00
|
|
|
},
|
2021-06-03 22:34:49 -07:00
|
|
|
{
|
|
|
|
"name": "Debug simulator (gdb)",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/simulator/build/rusefi_simulator",
|
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}/simulator/",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-12-05 20:21:17 -08:00
|
|
|
{
|
|
|
|
"name": "Debug Unit Tests (lldb)",
|
|
|
|
"type": "lldb",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/unit_tests/build/rusefi_test",
|
|
|
|
"args": [],
|
|
|
|
"cwd": "${workspaceFolder}/unit_tests/build/",
|
|
|
|
},
|
2020-11-11 17:36:15 -08:00
|
|
|
{
|
2021-06-03 22:34:49 -07:00
|
|
|
"name": "Debug F40x",
|
|
|
|
"type": "cortex-debug",
|
|
|
|
"request": "launch",
|
|
|
|
"cwd": "${workspaceFolder}/firmware",
|
|
|
|
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
|
|
|
|
"device": "STM32F407V",
|
|
|
|
"v1": false,
|
2023-03-02 01:26:33 -08:00
|
|
|
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/STM32F405.svd",
|
2021-06-03 22:34:49 -07:00
|
|
|
"servertype": "openocd",
|
|
|
|
"configFiles": ["interface/stlink.cfg", "target/stm32f4x.cfg"],
|
2022-09-15 05:29:38 -07:00
|
|
|
"rtos": "auto",
|
2021-06-03 22:34:49 -07:00
|
|
|
"runToMain": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Debug F42x",
|
|
|
|
"type": "cortex-debug",
|
|
|
|
"request": "launch",
|
|
|
|
"cwd": "${workspaceFolder}/firmware",
|
|
|
|
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
|
|
|
|
"device": "STM32F429Z",
|
|
|
|
"v1": false,
|
2023-03-02 01:26:33 -08:00
|
|
|
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/STM32F427.svd",
|
2021-06-03 22:34:49 -07:00
|
|
|
"servertype": "openocd",
|
|
|
|
"configFiles": ["interface/stlink.cfg", "target/stm32f4x.cfg"],
|
2022-09-15 05:29:38 -07:00
|
|
|
"rtos": "auto",
|
2021-06-03 22:34:49 -07:00
|
|
|
"runToMain": true
|
2020-11-11 17:36:15 -08:00
|
|
|
},
|
|
|
|
{
|
2021-06-03 22:34:49 -07:00
|
|
|
"name": "Debug F7x6",
|
|
|
|
"type": "cortex-debug",
|
|
|
|
"request": "launch",
|
|
|
|
"cwd": "${workspaceFolder}/firmware",
|
|
|
|
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
|
|
|
|
"device": "STM32F767V",
|
|
|
|
"v1": false,
|
2023-03-02 01:26:33 -08:00
|
|
|
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/STM32F7x7.svd",
|
2021-06-03 22:34:49 -07:00
|
|
|
"servertype": "openocd",
|
|
|
|
"configFiles": ["interface/stlink.cfg", "target/stm32f7x.cfg"],
|
2022-09-15 05:29:38 -07:00
|
|
|
"rtos": "auto",
|
2021-06-03 22:34:49 -07:00
|
|
|
"runToMain": true
|
2020-12-12 17:03:52 -08:00
|
|
|
},
|
|
|
|
{
|
2021-06-03 22:34:49 -07:00
|
|
|
"name": "Debug H743",
|
|
|
|
"type": "cortex-debug",
|
|
|
|
"request": "launch",
|
|
|
|
"cwd": "${workspaceFolder}/firmware",
|
|
|
|
"executable": "${workspaceRoot}/firmware/build/rusefi.elf",
|
|
|
|
"device": "STM32H743V",
|
|
|
|
"v1": false,
|
2023-03-02 01:26:33 -08:00
|
|
|
"svdFile": "${workspaceRoot}/firmware/ext/cmsis-svd/STM32H743x.svd",
|
2021-06-03 22:34:49 -07:00
|
|
|
"servertype": "openocd",
|
|
|
|
"configFiles": ["interface/stlink.cfg", "target/stm32h7x.cfg"],
|
2022-09-15 05:29:38 -07:00
|
|
|
"rtos": "auto",
|
2021-06-03 22:34:49 -07:00
|
|
|
"runToMain": true
|
|
|
|
}
|
2020-03-26 05:02:37 -07:00
|
|
|
]
|
|
|
|
}
|