From 67698cd61bf58aaa282fb1318c1b72c6376b8b9b Mon Sep 17 00:00:00 2001 From: Jordan Robinson <147454240+JordanRobo@users.noreply.github.com> Date: Sun, 24 Nov 2024 12:14:25 +1100 Subject: [PATCH] Update README.md Added in updated install and binary extraction command --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 8657a23..ccd4cae 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,13 @@ make It will provide the `binutils/objcopy` tool needed to convert the compiled Rust binary into `firmware.bin` (note: this works on arm64 as well). +Option B - Install prebuilt toolchain (easier): + +For Ubuntu/Debian: +``` +sudo apt-get install gcc-riscv64-unknown-elf +``` + ### Building 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: riscv-nuclei-elf-objcopy -O binary target/riscv32imac-unknown-none-elf/release/blinky firmware.bin ``` +If using prebuilt toolchain +```sh +riscv64-unknown-elf-objcopy -O binary target/riscv32imac-unknown-none-elf/release/blinky firmware.bin +``` + + 2) Flash using `dfu-util`: Keep the BOOT0 button pressed while power-up or while pressing and releaseing the reset button. Then