File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 11[target .riscv32imac-unknown-none-elf ]
2+ linker =' lld'
23runner = ' riscv64-unknown-elf-gdb -x openocd.gdb'
34rustflags = [
45 " -C" , " link-arg=-Tmemory-c8.x" ,
Original file line number Diff line number Diff line change @@ -56,6 +56,31 @@ To build all the provided examples run
5656cargo build --examples --release --all-features
5757```
5858
59+ #### Building everything including core
60+
61+ An option for using only distribution packaging, no rustup, is to let the compiler pretend it's unstable and build the ` core ` crate.
62+
63+ Install rust and its sources, and the lld linker.
64+
65+ Fedora:
66+
67+ ```
68+ sudo dnf install rust rust-src lld
69+ ```
70+
71+ In ` .cargo/config ` add:
72+
73+ ```
74+ [target.riscv32imac-unknown-none-elf]
75+ linker = 'lld'
76+ ```
77+
78+ Use the following command to build:
79+
80+ ```
81+ RUSTC_BOOTSTRAP=1 cargo build -Z build-std --examples --release --all-features
82+ ```
83+
5984### Using dfu-util for Flashing
6085
6186The GD32VF103 contains a [ DFU] ( https://www.usb.org/sites/default/files/DFU_1.1.pdf )
You can’t perform that action at this time.
0 commit comments