add: enable SWO output in VSCode with cortex-debug
This commit is contained in:
parent
6329859d31
commit
76a358207d
3
AMS_Master_Code/.gitignore
vendored
3
AMS_Master_Code/.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
/.vscode/
|
/.vscode/*
|
||||||
/build/
|
/build/
|
||||||
/.cache/
|
/.cache/
|
||||||
/.idea/
|
/.idea/
|
||||||
@ -8,3 +8,4 @@ compile_commands.json
|
|||||||
STM32Make.make
|
STM32Make.make
|
||||||
openocd.cfg
|
openocd.cfg
|
||||||
.stm32env
|
.stm32env
|
||||||
|
!/.vscode/launch.json
|
60
AMS_Master_Code/.vscode/launch.json
vendored
Normal file
60
AMS_Master_Code/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,60 @@
|
|||||||
|
{
|
||||||
|
"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": "ascii"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"showDevDebugOutput": "none",
|
||||||
|
"cwd": "${workspaceRoot}",
|
||||||
|
"executable": "./build/debug/AMS_Master_Nucleo.elf",
|
||||||
|
"name": "Attach STM32",
|
||||||
|
"request": "attach",
|
||||||
|
"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": "ascii"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user