You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-8Lines changed: 16 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,24 @@
20
20
rustup target add riscv32imac-unknown-none-elf
21
21
```
22
22
23
+
Either:
24
+
23
25
- RISC-V toolchain ([e.g. from SiFive](https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14.tar.gz))
24
26
25
-
One of:
27
+
or install prebuilt toolchain (easier):
28
+
29
+
For Ubuntu/Debian:
30
+
```
31
+
sudo apt-get install gcc-riscv64-unknown-elf
32
+
```
33
+
34
+
For Fedora:
35
+
36
+
```
37
+
sudo dnf install binutils-riscv64-linux-gnu
38
+
```
39
+
40
+
For flashing, one of:
26
41
27
42
-[dfu-util](http://dfu-util.sourceforge.net/)
28
43
-[openocd for GD32VF103](https://github.com/riscv-mcu/riscv-openocd)
@@ -31,13 +46,6 @@ One of:
31
46
32
47
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.
33
48
34
-
Option B - Install prebuilt toolchain (easier):
35
-
36
-
For Ubuntu/Debian:
37
-
```
38
-
sudo apt-get install gcc-riscv64-unknown-elf
39
-
```
40
-
41
49
### Building
42
50
43
51
If you have a GD32VF103C**B** chip on your board, edit `.cargo/config.toml` and replace
0 commit comments