ef762118a6
* Create common DLMSTP using core MSTP FSM in STM32F4xx example * add openocd debug launcher under vscode in STM32F4xx example * Add generic property list member checking for write property members of network port object in STM32F4xx example
46 lines
1.2 KiB
JSON
46 lines
1.2 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"type": "cortex-debug",
|
|
"request": "launch",
|
|
"name": "Debug with OpenOCD",
|
|
"cwd": "${workspaceRoot}",
|
|
"executable": "${workspaceRoot}/build/bacnet-mstp.elf",
|
|
"servertype": "openocd",
|
|
"device": "STM32F429ZI",
|
|
"serialNumber": "",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"target/stm32f4x.cfg"
|
|
],
|
|
"searchDir": [],
|
|
"svdFile":"${workspaceRoot}/stm32f429.svd",
|
|
"runToEntryPoint": "main",
|
|
"swoConfig": {
|
|
"enabled": true,
|
|
"cpuFrequency": 8000000,
|
|
"swoFrequency": 2000000,
|
|
"source": "probe",
|
|
"decoders": [
|
|
{ "type": "console", "label": "ITM", "port": 0 }
|
|
]
|
|
},
|
|
"preLaunchCommands": [
|
|
// guarantee the halt at soon as possible after reset
|
|
"monitor reset",
|
|
"monitor sleep 2000",
|
|
"monitor reset halt",
|
|
// synchronize GDB to the state of the target after reset
|
|
"monitor gdb_sync",
|
|
"stepi"
|
|
],
|
|
"postLaunchCommands": [
|
|
"monitor reset init",
|
|
"monitor sleep 200"
|
|
],
|
|
"showDevDebugOutput": "raw"
|
|
}
|
|
]
|
|
}
|