Readme language fix
1 file changed
tree: f8de785454e873ca211f20f93feed0464be3a4b0
  1. cli/
  2. coresight/
  3. doc/
  4. probe/
  5. .gitignore
  6. .travis.yml
  7. Cargo.toml
  8. CONTRIBUTING.md
  9. DESIGN.md
  10. README.md
  11. RESOURCES.md
README.md

probe-rs

A debugging toolset and library for debugging ARM cores on a separate host

Motivation

The goal of this library is to provide a toolset to interact with a variety of embedded MCUs and debug probes. For starters, ARM cores will be supported with use of the CoreSight protocol. If there is high demand and more contributors, it is intended to add support for other architectures.

Similar projects like OpenOCD, PyOCD, Segger Toolset, ST Tooling, etc. exist. They all implement the GDB protocol and their own protocol on top of it to enable GDB to commuicate with the debug probe. This is not standardized and also little bit unstable sometimes. For every tool the commands are different and so on.

This project gets rid of the GDB layer and provides a direct interface to the debug probe, which then enables other software, for example VisualStudio to use it's debug functionality.

What's more is that we can use CoreSight to its full extent. We can trace and modify memory as well as registers in real time.

The end goal is a complete library toolset to enable other tools to use the functionality of CoreSight.

Functionality

As of writing this, the lib can connect to an ST-Link, attach to an STM32F429 (it should be able to connect to any target; this one was just used for testing) and read DAP registers. It can read all memory regions and can write to non ROM regions.

CLI

To demonstrate the functionality a small cli was written. Fire it up with

cargo run -p cli -- help

The help dialog should then tell you how to use the CLI.

For using the tracer fire

cargo run -p cli -- trace <n> <address> | python3 cli/update_plot.py

The pipe interface is binary for now.

Here is how it looks if you do everything correct and you trace a memory location with a changing value:

FAQ

I need help!

Don't hesitate to file an issue, ask questions on irc, or contact @Yatekii by e-mail.

How can I help?

See CONTRIBUTING.md.

License

Licensed under either of

Contributing

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.