You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Uwe Bonnes 5097a23196 jlink: Fix wrong sized array. 4 years ago
driver Add udev rules 6 years ago
libopencm3@89074d6a13 libopencm3: Update to Head March 25 2020 to ease windows compilation #394 5 years ago
scripts Fixed overrun and formatting, when dumping data in swolisten. 5 years ago
src jlink: Fix wrong sized array. 4 years ago
upgrade Clarify STM32F103x8 Flashsize handling. 5 years ago
.gitignore Build firmware executables as *.elf file 4 years ago
.gitmodules Changed libopencm3 url to https. 12 years ago
.travis.yml CMSIS-DAP support. 4 years ago
COPYING Added README and COPYING 14 years ago
HACKING Replace README and HACKING with references to the Github wiki. 10 years ago
Makefile Addition of pc-hosted variant and extensions to other targets to support it. 5 years ago
README.md README.md: Mention the PC-Hosted GDB server. 4 years ago
UsingSWO swlink: Enable UART2 for SWO. 6 years ago

README.md

Black Magic Probe

Build Status Discord Donate Kickstarter

Firmware for the Black Magic Debug Probe.

The Black Magic Probe is a modern, in-application debugging tool for embedded microprocessors. It allows you see what is going on 'inside' an application running on an embedded microprocessor while it executes. It is able to control and examine the state of the target microprocessor using a JTAG or Serial Wire Debugging (SWD) port and on-chip debug logic provided by the microprocessor. The probe connects to a host computer using a standard USB interface. The user is able to control exactly what happens using the GNU source level debugging software, GDB. Serial Wire Output (SWO) allows the target to write tracing and logging to the host without using usb or serial port. Decoding SWO in the probe itself makes SWO viewing as simple as connecting to a serial port.

See online documentation at https://github.com/blacksphere/blackmagic/wiki

Binaries from the latest automated build are at http://builds.blacksphere.co.nz/blackmagic

BLACKMAGIC

You can also build blackmagic as a PC hosted application "make PROBE_HOST=hosted"

This builds the same GDB server, that is running on the Black Magic Probe. While connection to the Black Magic Probe GDB server is via serial line, connection to the PC-Hosted GDB server is via TCP port 2000 for the first GDB server and higher for more invokations. Use "tar(get) ext(ented) :2000" to connect. PC-hosted BMP GDB server can talk to the Black Magic Probe itself, ST-LinkV2 and V3, CMSIS-DAP, JLINK and FTDI MPSSE based debuggers.

When connected to a single BMP supported probe, starting "blackmagic" w/o any arguments starts the server. When several BMP supported probes are connected, their types, position and serial number is displayed and the program exits. Add "-P (position)" to the next invokation to select one.

PC hosted BMP also allows to flash, read and verify a binary file, by default starting at 0x08000000. The "-t" argument displays information about the connected target. Use "-h " to get a list of supported options.