blackmagic-sys 0.1.0

Bindings to Blackmagic-debug host functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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`.