106 lines
2.6 KiB
JSON
106 lines
2.6 KiB
JSON
{
|
|
"configurations": [
|
|
{
|
|
"showDevDebugOutput": "none",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "./build/debug/AMS_Master_Nucleo.elf",
|
|
"name": "Debug STM32",
|
|
"request": "launch",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"preLaunchTask": "Build STM",
|
|
"device": "stm32h7a3xxq.s",
|
|
"configFiles": [
|
|
"openocd.cfg"
|
|
],
|
|
"swoConfig": {
|
|
"enabled": true,
|
|
"source": "probe",
|
|
"swoFrequency": 10666666,
|
|
"cpuFrequency": 64000000,
|
|
"decoders": [
|
|
{
|
|
"port": 0,
|
|
"type": "console",
|
|
"label": "SWO LOG",
|
|
"encoding": "utf8"
|
|
},
|
|
{
|
|
"port": 1,
|
|
"type": "console",
|
|
"label": "Master Status",
|
|
"encoding": "utf8"
|
|
},
|
|
{
|
|
"port": 2,
|
|
"type": "console",
|
|
"label": "Module Status",
|
|
"encoding": "utf8"
|
|
}
|
|
]
|
|
},
|
|
"liveWatch": {
|
|
"enabled": true,
|
|
"samplesPerSecond": 4
|
|
}
|
|
},
|
|
{
|
|
"showDevDebugOutput": "none",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "./build/debug/AMS_Master_Nucleo.elf",
|
|
"name": "Attach STM32",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"device": "stm32h7a3xxq.s",
|
|
"configFiles": [
|
|
"openocd.cfg"
|
|
],
|
|
"swoConfig": {
|
|
"enabled": true,
|
|
"source": "probe",
|
|
"swoFrequency": 10666666,
|
|
"cpuFrequency": 64000000,
|
|
"decoders": [
|
|
{
|
|
"port": 0,
|
|
"type": "console",
|
|
"label": "SWO LOG",
|
|
"encoding": "utf8"
|
|
},
|
|
{
|
|
"port": 1,
|
|
"type": "console",
|
|
"label": "Master Status",
|
|
"encoding": "utf8"
|
|
},
|
|
{
|
|
"port": 2,
|
|
"type": "console",
|
|
"label": "Module Status",
|
|
"encoding": "utf8"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": "C/C++ Runner: Debug Session",
|
|
"type": "cppdbg",
|
|
"request": "launch",
|
|
"args": [],
|
|
"stopAtEntry": false,
|
|
"externalConsole": true,
|
|
"cwd": "${workspaceFolder}",
|
|
"program": "${workspaceFolder}/build/debug/AMS_Master_Nucleo.elf",
|
|
"MIMode": "gdb",
|
|
"miDebuggerPath": "gdb",
|
|
"setupCommands": [
|
|
{
|
|
"description": "Enable pretty-printing for gdb",
|
|
"text": "-enable-pretty-printing",
|
|
"ignoreFailures": true
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |