Rust binary running on bare ARM CortexM hardware (thumbv7em-none-eabihf
).
This repo contains a cross compiling toolchain for thumbv7em-none-eabihf
binaries on MacOS and Linux
host. The target spec for this architecture (bare metal, no os) can be found in thumbv7em-none-eabihf-noos.json
.
I'm getting my feet wet with osdev in rust; building a (uni) kernel, based on Embedded Systems Architecture the tutorials at https://os.phil-opp.com.
Rust nightly
and thumbv7em-none-eabihf
target are required to build the binary.
Manual steps:
$ cargo install cargo-xbuild
$ rustup default nightly
$ rustup target add thumbv7em-none-eabihf
$ rustup component add rust-src
$ rustup component add llvm-tools-preview
$ cargo xbuild --release
TODO: needs a bootloader