File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 4242
4343It 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
4754If 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:
7481riscv-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+
77902 ) Flash using ` dfu-util ` :
7891
7992Keep the BOOT0 button pressed while power-up or while pressing and releaseing the reset button. Then
You can’t perform that action at this time.
0 commit comments