#bmp #bindings #remote #protocols #blackmagic #build #compile

sys blackmagic-sys

Bindings to Blackmagic-debug host functions

1 unstable release

0.1.0 Sep 17, 2023

#22 in #bmp

GPL-3.0-or-later

4.5MB
62K SLoC

C 56K SLoC // 0.4% comments Perl 3K SLoC // 0.1% comments Python 2K SLoC // 0.2% comments Bitbake 509 SLoC // 0.1% comments GNU Style Assembly 264 SLoC // 0.2% comments Rust 226 SLoC // 0.2% comments Forge Config 64 SLoC // 0.3% comments Snakemake 27 SLoC // 0.5% comments Shell 12 SLoC // 0.7% comments

Contains (Windows DLL, 650KB) ftd2xx.dll, (Windows DLL, 395KB) blackmagic/3rdparty/ftdi/i386/ftd2xx.dll, (static library, 21KB) ftd2xx.lib, (static library, 23KB) blackmagic/3rdparty/ftdi/i386/ftd2xx.lib

blackmagic-remote

This crate provides Rust bindings for the blackmagic remote protocol. It is mainly built for integration into probe-rs.

Compiling blackmagic

The make process is not yet integrated into the build.rs script. For now, first compile blackmagic separately before testing the bindings using the following make command

cd blackmagic
ENABLE_RTT=1 PROBE_HOST=hosted HOSTED_BMP_ONLY=1 PC_HOSTED=1 ENABLE_DEBUG=1 make -j 8

This builds the BMP app.

Testing

Some HIL tests have been written to test if everything works with a target connected and debug probe connected. To test on a different system, change the serial number and target voltage in the tests in lib.rs.

No runtime deps