Skip to content

Instantly share code, notes, and snippets.

@sidprice
Created June 18, 2022 19:20
Show Gist options
  • Save sidprice/c0b5b12ff9e0f011e8221a2cb72d211a to your computer and use it in GitHub Desktop.
Save sidprice/c0b5b12ff9e0f011e8221a2cb72d211a to your computer and use it in GitHub Desktop.
Usage: D:\DataRoot\Projects\blackmagic\src\blackmagic.exe [options]
-h, --help This help
-l, --list List available supported probes
-v, --verbosity <bitmask> Set the output verbosity, some combination of:
1 = INFO, 2 = GDB, 4 = TARGET, 8 = PROBE, 16 = WIRE
Probe selection options (if used choose one):
-d, -device <path> Use a serial device at the given path (Deprecated!)
-P, probe <number> Use the <number>th debug probe found while scanning the
system, see the output from list for the order
-s, --serial <serNumber> Select the debug probe with the given serial number
-c, --cable <type> Select the FTDI-based debug probe with of the given
type (cable)
General configuration options:
-n, --number <scanNum> Select the target device at the given position in the
scan chain (use the -t option to get a scan chain listing)
-j, --jtag Use JTAG instead of SWD
-C, --conReset Connect to target under hardware reset
-t, --??? Perform a chain scan and display information about the
conected devices
-T, --??? Perform continues read- or write-back of a value to allow
measurement of protocol timing. Aborted by ^C
-e, --extR Assume external resistors for FTDI devices, that is having the
FTDI chip connected through resistors to TMS, TDI and TDO
-p, --power Power the target from the probe (if possible)
-R, --reset [h] Reset the device. If followed by 'h', this will be done using
the hardware reset line instead of over the debug link
-H, --highLevel Do not use the high level command API (bmp-remote)
-M, --Monitor <string> Run target-specific monitor commands. This option
can be repeated for as many commands you wish to run.
If the command contains spaces, use quotes around the
complete command
SWD-specific options:
-f, --freq <frequenct> Set operating frequency for SWD
-m, --??? <target> Use the given target ID for selection in SWD multi-drop
Flash operation options:
-E, --Erase Erase the target device Flash
-w, --write Write the specified binary file to the target device
Flash (the default)
-V, --Verify Verify the target device Flash against the specified
binary file
-r, --read Read the target device Flash
Flash operation modifier options:
-a, --addr <address> Start address for the given Flash operation (defaults to
the start of Flash)
-S, --??? <number> Number of bytes to work on in the Flash operation (default
is till the operation fails or is complete)
<file> Binary file to use in Flash operations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment