Skip to content

Run rust on the nrf9160, with the SPM already included

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

tweedegolf/nrf9160-rust-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Run rust on the nrf9160, with the SPM already included

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages