Skip to content

embed-rs/stm32f7-discovery

Repository files navigation

stm32f7-discovery

Building

  • Install the thumbv7em-none-eabihf target: Run rustup target add thumbv7em-none-eabihf.
  • Run cargo build

Running

First you need to install some dependencies:

  • Install stlink: See https://github.com/texane/stlink#installation.
  • Install openocd: At least version 0.10.0 is needed. You can install it either from your package manager or from source.
  • Install gdb-multiarch: This cross-platform version of GDB should be available through your package manager.

Then you can connect your controller and run the following:

  • Start openocd: In a separate terminal window, run openocd -f board/stm32f7discovery.cfg. You might need sudo. If you get an "Can't find board/stm32f7discovery.cfg" error your version of openocd might be too old (it should be at least 0.10.0).
  • Run cargo run: This connects to the openocd instance and flashes your binary to the controller.
  • Continue execution: By default GDB pauses the execution after loading. To continue your program, run continue or c.

To run in release mode (i.e. with optimizations), run cargo run --release.

License

Licensed under either of

at your option.

Contribution

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.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages