Skip to content

Instantly share code, notes, and snippets.

@sidprice
Created June 18, 2022 20:34
Show Gist options
  • Save sidprice/9b2a37748c6f7eeebb904d2ceee5c9fb to your computer and use it in GitHub Desktop.
Save sidprice/9b2a37748c6f7eeebb904d2ceee5c9fb to your computer and use it in GitHub Desktop.
Usage: D:\DataRoot\Projects\blackmagic\src\blackmagic.exe
[-h | -l | [-vBITMASK] [-d PATH | -P NUMBER | -s SERIAL | -c TYPE]
[-n NUMBER] [-j] [-C] [-t | -T] [-e] [-p] [-R[h]] [-H] [-M STRING ...]
[-E | -w | -V | -r] [-a ADDR] [-S number] [file]]
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, --ftdi-type <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, --hw-reset Connect to target under hardware reset
-t, --list-chain Perform a chain scan and display information about the
connected devices
-T, --timing 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, --high-level 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, --multi-drop <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, --byte-count <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