Skip to content

Commit f0b16de

Browse files
Merge pull request #41 from JordanRobo/patch-1
Update README.md
2 parents c2daee8 + 67698cd commit f0b16de

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ One of:
3131

3232
When using `dfu-util`, the RISC-V toolchain is not necessary. Only `rust-objcopy` from [cargo-binutils](https://github.com/rust-embedded/cargo-binutils) is needed.
3333

34+
Option B - Install prebuilt toolchain (easier):
35+
36+
For Ubuntu/Debian:
37+
```
38+
sudo apt-get install gcc-riscv64-unknown-elf
39+
```
40+
3441
### Building
3542

3643
If you have a GD32VF103C**B** chip on your board, edit `.cargo/config` and replace
@@ -63,6 +70,12 @@ Steps to flash an example via DFU:
6370
rust-objcopy -O binary target/riscv32imac-unknown-none-elf/release/examples/blinky firmware.bin
6471
```
6572

73+
If using prebuilt toolchain
74+
```sh
75+
riscv64-unknown-elf-objcopy -O binary target/riscv32imac-unknown-none-elf/release/blinky firmware.bin
76+
```
77+
78+
6679
2) Flash using `dfu-util`:
6780

6881
Keep the BOOT0 button pressed while power-up or while pressing and releaseing the reset button. Then

0 commit comments

Comments
 (0)