rustup target add thumbv7em-none-eabihf
.cargo build
First you need to install some dependencies:
Then you can connect your controller and run the following:
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).cargo run
: This connects to the openocd instance and flashes your binary to the controller.continue
or c
.To run in release mode (i.e. with optimizations), run cargo run --release
.
Licensed under either of
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
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.