-
Notifications
You must be signed in to change notification settings - Fork 263
Description
Hello,
I'd like to request support for the Black Magic Debug App for cortex-debug.
Black Magic Debug App aka blackmagic-bmda is the Black Magic Debug compiled as a standalone application that runs on the host PC rather than as a firmware on the debug probe. This architecture allows the tool to interface with a variety of debug probes, including:
-Black Magic Probe (via USB-serial interface)
-ST-Link v2, v2.1, and v3 (with recent firmware)
-CMSIS-DAP compatible probes
-J-Link probes
-FTDI MPSSE-based probes
This usage model is similar to OpenOCD, acting as a "server in the middle" between GDB and the hardware.
More details can be found in the here.
Motivation
I’ve previously used OpenOCD with cortex-debug, but its slow release cycle has delayed support for newer MCUs like the STM32H5 series. In contrast, Black Magic Debug provides timely updates and already supports the STM32H5, making it a strong alternative to OpenOCD.
Furthermore, prebuilt binaries for bmda are readily available for Linux, Windows, and macOS, which significantly lowers the barrier to entry: Releases
Proposed Implementation
Since bmda behaves similarly to OpenOCD—where you launch the server in one terminal and connect via GDB in another—it might be relatively straightforward to add support.
Maybe a new "servertype" could be added to cortex-debug as "bmda" so the existing "bmp" could be left as is ? With "bmda" you would not give the serial port as an argument but the path to the server.
Thank you for considering this request! I’d be happy to help test or provide feedback if needed.