Skip to content

Instantly share code, notes, and snippets.

@veghead
Created August 16, 2023 15:58
Show Gist options
  • Save veghead/adaebf6801533b8ee4767ea832d962e1 to your computer and use it in GitHub Desktop.
Save veghead/adaebf6801533b8ee4767ea832d962e1 to your computer and use it in GitHub Desktop.
Remote debugging an NRF52 with GDBServer on a different machine from VSCode and Cortex Debug

On the target machine: JLinkGDBServer -Port 5555 -device NRF52 -if SWD

In VSCode locally, add the following config block in launch.json:

        {
            "name": "Remote Debug",
            "cwd": "${workspaceRoot}",
            "executable": "build/src/myapp",
            "gdbTarget": "192.168.22.6:5555",
            "request": "launch",
            "type": "cortex-debug",
            "servertype": "external",
            "device": "nrf52",
            "interface": "swd",
            "armToolchainPath": "/usr/local/arm/bin"
        }

servertype "external", and gdbTarget are the keys to get it working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment