Last active
August 16, 2024 01:45
-
-
Save litui/b106c49712bbcb06f8211620bbba0d92 to your computer and use it in GitHub Desktop.
Black Magic Probe cortex-debug configurations for synthstrom deluge debugging
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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