rust stuff for cheapie's rvcontroller
- Rust 97.8%
- Logos 2.2%
| .cargo | ||
| csr | ||
| ecall | ||
| fake-critical-section | ||
| hello | ||
| ipropt | ||
| rrxing | ||
| shim | ||
| slice-writer | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| memory.x | ||
| README.md | ||
rvcontroller-rust
rust stuff for cheapie's rvcontroller
usage
this uses the riscv32imac-unknown-none-elf target (which is not
exactly what rvcontroller supports, but making our own more accurate
target requires nightly). it can be downloaded with rustup:
rustup target add riscv32imac-unknown-none-elf
(or just build it yourself if you want)
since this target makes elf files, it'll need to be converted to
something that can be loaded on rvcontroller. cargo-binutils's
cargo objcopy is a convenient way to automatically build cargo stuff
and then convert it with llvm-objcopy. for example, to get the intel
hex that rvcontroller_loader wants:
cargo objcopy --release -p hello -- -O ihex hello.hex