File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed
Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,3 @@ rustflags = [
77
88[build ]
99target = " riscv32imac-unknown-none-elf"
10-
11- [profile.release]
12- opt-level = "z" # Optimize for size.
13- codegen-units = 1
14- lto = true
15-
16- [profile.dev]
17- opt-level = "z" # Optimize for size.
Original file line number Diff line number Diff line change @@ -44,3 +44,10 @@ required-features = ["lcd"]
4444name = " sdcard_test"
4545required-features = [" sdcard" ]
4646
47+ [profile .release ]
48+ opt-level = " z" # Optimize for size.
49+ codegen-units = 1
50+ lto = true
51+
52+ [profile .dev ]
53+ opt-level = " z" # Optimize for size.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ sudo apt-get install gcc-riscv64-unknown-elf
4040
4141### Building
4242
43- If you have a GD32VF103C** B** chip on your board, edit ` .cargo/config ` and replace
43+ If you have a GD32VF103C** B** chip on your board, edit ` .cargo/config.toml ` and replace
4444` memory-c8.x ` with ` memory-cb.x ` .
4545
4646To build all the provided examples run
@@ -181,7 +181,7 @@ To flash the firmware, execute `load` in GDB:
181181```
182182
183183To improve your workflow, you can put the aforementioned GDB commands in
184- a ` debug.gdb ` file and add these lines to ` .cargo/config ` :
184+ a ` debug.gdb ` file and add these lines to ` .cargo/config.toml ` :
185185
186186```
187187[target.riscv32imac-unknown-none-elf]
You can’t perform that action at this time.
0 commit comments