Skip to content

Latest commit

 

History

History
70 lines (58 loc) · 2.15 KB

README.md

File metadata and controls

70 lines (58 loc) · 2.15 KB

nrf9160-rust-starter

The app-template for the nrf9160, with the SPM already included.

app-template is part of the Knurling project, Ferrous Systems' effort at improving tooling used to develop for embedded systems.

Notes

  • disables flip-link (need to figure out how to make that work)
  • includes a pre-compiled zephyr.bin with some linker tricks

Pre-Reqs

  • Install Rustup
  • Add the target with the command below
    $ rustup target add thumbv8m.main-none-eabihf
  • install probe-run. On Linux, you might have to install libudev and libusb from your package manager before installing probe-run
    $ cargo install probe-run
    probe-run is built on the probe-rs library and supports CMSIS-DAP, ST-Link, and Segger J-Link out of the box. J-Link is recommended for this repo. For Linux, udev rules can be added for user access without root privileges.

Running a Binary

  • run example hello.rs as a debug build
    $ cargo run --example hello
  • or run with alias commands defined in .cargo/config.toml
    $ cargo rex hello
  • run example as a release build (production build)
    $ cargo rrex hello
  • run main.rs file
    $ cargo 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 licensed as above, without any additional terms or conditions.