{
    // 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": [
        {
            "name": "Cortex Debug",
            "cwd": "${workspaceRoot}",
            "executable": "${workspaceRoot}/BMLite_example/out/bmlite_demo",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "jlink",
            "device": "nRF52840_xxAA",
            "interface": "swd",
            "runToMain": true,

            // "postLaunchCommands": [
            //   "flush regs",
            //   "load"
            // ],
            // "postRestartCommands": [
            //   "flush regs",
            //   "load"
            // ],
            "gdbTarget": "/opt/SEGGER/JLink/JLinkGDBServer"
        }
    ]
}