Skip to content

Commit c2daee8

Browse files
Merge pull request #40 from erdnaxe/rust-objcopy
README: use rust-objcopy
2 parents ded9e57 + fb98d8b commit c2daee8

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

README.md

+2-13
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,7 @@ One of:
2929
- [RV-LINK](https://gitee.com/zoomdy/RV-LINK)
3030
- [stm32flash](https://sourceforge.net/projects/stm32flash/)
3131

32-
When using `dfu-util`, the entire RISC-V toolchain is not necessary. Only `objcopy` from [riscv-binutils-gdb](https://github.com/sifive/riscv-binutils-gdb.git) is needed.
33-
34-
It can be compiled with the following commands:
35-
36-
```
37-
git clone https://github.com/sifive/riscv-binutils-gdb.git
38-
cd riscv-binutils-gdb
39-
./configure --target=riscv64-unknown-elf --disable-werror --with-python=no --disable-gdb --disable-sim --disable-libdecnumber --disable-libreadline --with-expat=yes --with-mpc=no --with-mpfr=no --with-gmp=no
40-
make
41-
```
42-
43-
It will provide the `binutils/objcopy` tool needed to convert the compiled Rust binary into `firmware.bin` (note: this works on arm64 as well).
32+
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.
4433

4534
### Building
4635

@@ -71,7 +60,7 @@ Steps to flash an example via DFU:
7160
1) Extract the binary
7261

7362
```sh
74-
riscv-nuclei-elf-objcopy -O binary target/riscv32imac-unknown-none-elf/release/blinky firmware.bin
63+
rust-objcopy -O binary target/riscv32imac-unknown-none-elf/release/examples/blinky firmware.bin
7564
```
7665

7766
2) Flash using `dfu-util`:

0 commit comments

Comments
 (0)