Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added in updated install and binary extraction command
  • Loading branch information
JordanRobo authored Nov 24, 2024
1 parent ded9e57 commit 67698cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 67698cd

Please sign in to comment.