2 releases

0.1.0-alpha.1 Jul 1, 2021

#1285 in Procedural macros

MIT/Apache

56KB
1K SLoC

cargo-rtic-scope will be a single-click solution for tracing RTIC applications running on embedded ARM Cortex-M targets. If you clone this repository and run cargo install --path . && cd examples && cargo rtic-scope trace --bin blinky --dev /dev/ttyUSB3 it will

  1. attach to your target;
  2. configure /dev/ttyUSB3 for trace reception;
  3. build blinky;
  4. generate resolve maps for exceptions and interrupt numbers from blinky's source code;
  5. flash blinky to target;
  6. reset the target;
  7. deserialize the trace from /dev/ttyUSB3 into human-readable types and serialize these types to JSON and save to disk under target/rtic-traces.

When done, cargo-rtic-scope will also stream the resolved trace to a frontend. For example, a graphical web application.

License

For non-commercial purposes, the code in this repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0). See LICENSE-APACHE and LICENSE-MIT for details.

This project is maintained in cooperation with @GrepitAB and Luleå Technical University. For commercial support and alternative licensing, inquire via contact@grepit.se.

Dependencies

~30–43MB
~789K SLoC