Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blueluna/servox
Rust experiments on SERV RISC-V soft-core
https://github.com/blueluna/servox
fpga risc-v rust
Last synced: 25 days ago
JSON representation
Rust experiments on SERV RISC-V soft-core
- Host: GitHub
- URL: https://github.com/blueluna/servox
- Owner: blueluna
- License: mit
- Created: 2024-12-03T22:46:36.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-10T09:15:28.000Z (about 1 month ago)
- Last Synced: 2024-12-13T01:31:42.664Z (28 days ago)
- Topics: fpga, risc-v, rust
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust on SERV Experiments
Install some tools.
```shell
$ cargo install cargo-binutils
$ rustup component add llvm-tools
```## Blinky
Build release and copy elf to binary.
```shell
$ cargo objcopy --release --bin blinky -- -O binary blinky.bin
```Generate a memory file using `makehex.py` from serv.
```shell
$ python3 ./serv/sw/makehex.py servox/blinky.bin > blinky.hex
```Build / run in testbench.
```shell
$ fusesoc run --target=verilator_tb servant --firmware=blinky.hex
```Build / run on hardware.
```shell
$ fusesoc run --target=te0802 servant --firmware=blinky.hex
```## Hello
Build release and copy elf to binary.
```shell
$ cargo objcopy --release --bin hello -- -O binary hello.bin
```Generate a memory file using `makehex.py` from serv.
```shell
$ python3 ./serv/sw/makehex.py servox/hello.bin > hello.hex
```Build / run in testbench.
```shell
$ fusesoc run --target=verilator_tb servant --firmware=hello.hex --uart_baudrate=57600
```Build / run on hardware.
```shell
$ fusesoc run --target=te0802 servant --firmware=hello.hex
```Connect to the target at 115200 baud rate.
```shell
$ tio --mute --baud 115200 /dev/ttyUSB0
Hello, I'm Servant!
```