Skip to content

Commit

Permalink
Merge pull request #41 from JordanRobo/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
romancardenas authored Nov 24, 2024
2 parents c2daee8 + 67698cd commit f0b16de
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 @@ -31,6 +31,13 @@ One of:

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.

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 @@ -63,6 +70,12 @@ Steps to flash an example via DFU:
rust-objcopy -O binary target/riscv32imac-unknown-none-elf/release/examples/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 f0b16de

Please sign in to comment.