rust stuff for cheapie's rvcontroller
  • Rust 78.9%
  • Nix 19.5%
  • Logos 1.6%
Find a file
2026-06-25 12:48:20 -04:00
.cargo enable zimop, zawrs, and zcmop extensions 2026-05-25 11:15:57 -04:00
csr csr: expose rvcontroller's experimental mmio stuff 2026-06-06 17:36:11 -04:00
ecall add soundness warnings 2026-05-20 14:54:47 -04:00
hello turn off no-mhartid and no-xie-xip 2026-06-22 07:13:40 -04:00
ipropt turn off no-mhartid and no-xie-xip 2026-06-22 07:13:40 -04:00
meowmeowio turn off no-mhartid and no-xie-xip 2026-06-22 07:13:40 -04:00
panic-printer shim: rename to panic-printer 2026-06-19 12:11:02 -04:00
rrxing turn off no-mhartid and no-xie-xip 2026-06-22 07:13:40 -04:00
slice-writer slice-writer: fix doc comment 2026-06-07 11:17:15 -04:00
.gitignore flake: create 2026-06-03 20:26:50 -04:00
build.rs build: fix rerun if changed paths 2026-05-08 10:23:46 -04:00
Cargo.lock update to riscv-rt 0.18.0 2026-06-19 12:26:13 -04:00
Cargo.toml shim: rename to panic-printer 2026-06-19 12:11:02 -04:00
flake.lock flake: get rid of fenix 2026-06-04 00:34:20 -04:00
flake.nix flake: fix cargoHash 2026-06-25 12:48:20 -04:00
memory.x ipropt: fix 2026-05-19 11:54:00 -04:00
README.md update rvcontroller links 2026-05-24 07:13:04 -04:00

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