{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "DAPLink Debug",
            "cwd": "${workspaceFolder}",
            "executable": "${workspaceFolder}/build/debug/OriginCar.elf",
            "request": "launch",
            "type": "cortex-debug",
            "device": "STM32F407ZG",
            "svdFile": "${workspaceFolder}/../../stm32/stm32f407-gcc-framework/STM32F407.svd",
            "servertype": "openocd",
            "configFiles": ["${workspaceFolder}/openocd.cfg"],
            "preLaunchTask": "Build Debug",
            "runToEntryPoint": "main",
            "overrideLaunchCommands": [
                "monitor reset init",
                "load",
                "monitor reset init"
            ],
            "liveWatch": { "enabled": true, "samplesPerSecond": 4 }
        },
        {
            "name": "DAPLink Attach",
            "cwd": "${workspaceFolder}",
            "executable": "${workspaceFolder}/build/debug/OriginCar.elf",
            "request": "attach",
            "type": "cortex-debug",
            "device": "STM32F407ZG",
            "svdFile": "${workspaceFolder}/../../stm32/stm32f407-gcc-framework/STM32F407.svd",
            "servertype": "openocd",
            "configFiles": ["${workspaceFolder}/openocd.cfg"],
            "liveWatch": { "enabled": true, "samplesPerSecond": 4 }
        }
    ]
}
