Skip to content

Commit 67698cd

Browse files
authored
Update README.md
Added in updated install and binary extraction command
1 parent ded9e57 commit 67698cd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ make
4242

4343
It will provide the `binutils/objcopy` tool needed to convert the compiled Rust binary into `firmware.bin` (note: this works on arm64 as well).
4444

45+
Option B - Install prebuilt toolchain (easier):
46+
47+
For Ubuntu/Debian:
48+
```
49+
sudo apt-get install gcc-riscv64-unknown-elf
50+
```
51+
4552
### Building
4653

4754
If you have a GD32VF103C**B** chip on your board, edit `.cargo/config` and replace
@@ -74,6 +81,12 @@ Steps to flash an example via DFU:
7481
riscv-nuclei-elf-objcopy -O binary target/riscv32imac-unknown-none-elf/release/blinky firmware.bin
7582
```
7683

84+
If using prebuilt toolchain
85+
```sh
86+
riscv64-unknown-elf-objcopy -O binary target/riscv32imac-unknown-none-elf/release/blinky firmware.bin
87+
```
88+
89+
7790
2) Flash using `dfu-util`:
7891

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

0 commit comments

Comments
 (0)