Skip to content

Instantly share code, notes, and snippets.

@litui
Last active August 16, 2024 01:45
Show Gist options
  • Select an option

  • Save litui/b106c49712bbcb06f8211620bbba0d92 to your computer and use it in GitHub Desktop.

Select an option

Save litui/b106c49712bbcb06f8211620bbba0d92 to your computer and use it in GitHub Desktop.
Black Magic Probe cortex-debug configurations for synthstrom deluge debugging
{
"version": "0.2.0",
"configurations": [
{
"name": "Cortex-Debug Black Magic Probe",
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build Debug",
"executable": "${workspaceRoot}/build/Debug/deluge.elf",
"request": "launch",
"type": "cortex-debug",
"servertype": "bmp",
"interface": "swd",
"device": "R7S721020",
"BMPGDBSerialPort": "/dev/SERIAL_DEVICE",
"svdFile": "${workspaceRoot}/contrib/rza1.svd",
"targetId": 1,
"overrideLaunchCommands": [
"mon freq 1951961", // set to maximum for native Black Magic Probe
"load",
],
"overrideResetCommands": [
"mon freq 1951961", // set to maximum for native Black Magic Probe
"load",
],
"overrideRestartCommands": [
"mon freq 1951961", // set to maximum for native Black Magic Probe
"load",
],
},
{
"name": "Cortex-Debug Black Magic (BMDA)",
"cwd": "${workspaceRoot}",
"preLaunchTask": "Build Debug",
"executable": "${workspaceRoot}/build/Debug/deluge.elf",
"request": "launch",
"type": "cortex-debug",
"servertype": "external",
"gdbTarget": "localhost:2000",
"interface": "swd",
"device": "R7S721020",
"svdFile": "${workspaceRoot}/contrib/rza1.svd",
"targetId": 1,
"overrideLaunchCommands": [
"mon swd",
"att 1",
"load",
],
"overrideResetCommands": [
"load",
],
"overrideRestartCommands": [
"load",
],
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment