@@ -8,29 +8,29 @@ Install tooling of the embedded Rust target for Cortex-M7F. It is necessary to
88use an older version of Rust, since newer version bloat the firmware:
99
1010``` sh
11- rustup install 1.76 .0
12- rustup +1.76 .0 target add thumbv7em-none-eabihf
11+ rustup install 1.77 .0
12+ rustup +1.77 .0 target add thumbv7em-none-eabihf
1313```
1414
1515This project utilizes [ cargo make] ( https://github.com/sagiegurari/cargo-make ) :
1616
1717``` sh
18- cargo +1.76 .0 install cargo-make
18+ cargo +1.77 .0 install cargo-make
1919```
2020
2121Furthermore, the embedded part of the project uses [ flip
2222link] ( https://github.com/knurling-rs/flip-link ) :
2323
2424``` sh
25- cargo +1.76 .0 install flip-link
25+ cargo +1.77 .0 install flip-link
2626```
2727
2828## Formatting, linting, unit tests
2929
3030Run formatting, linter and unit tests:
3131
3232``` sh
33- cargo +1.76 .0 make
33+ cargo +1.77 .0 make
3434```
3535
3636## DSP benchmark
@@ -39,7 +39,7 @@ Run the benchmark:
3939
4040``` sh
4141cd dsp
42- cargo +1.76 .0 bench --bench bench
42+ cargo +1.77 .0 bench --bench bench
4343```
4444
4545Use a profiler to analyze the results:
@@ -48,7 +48,7 @@ Use a profiler to analyze the results:
4848cd dsp
4949rm -f target/release/deps/bench-*
5050rm -f callgrind.out.*
51- RUSTFLAGS=" -g" cargo +1.76 .0 bench --bench bench --no-run
51+ RUSTFLAGS=" -g" cargo +1.77 .0 bench --bench bench --no-run
5252BENCH=$( find target/release/deps -type f -executable -name ' bench-*' )
5353valgrind \
5454 --tool=callgrind \
@@ -80,20 +80,20 @@ started](https://probe.rs/docs/getting-started/probe-setup/) to learn how.
8080Then install Rust dependencies of probe-rs:
8181
8282``` sh
83- cargo +1.76 .0 install probe-run
84- cargo +1.76 .0 install flip-link
83+ cargo +1.77 .0 install probe-run
84+ cargo +1.77 .0 install flip-link
8585```
8686
8787To flash the project, call this make target:
8888
8989``` sh
90- cargo +1.76 .0 make flash
90+ cargo +1.77 .0 make flash
9191```
9292
9393Logging level can be set using an environment variable:
9494
9595``` sh
96- DEFMT_LOG=info cargo +1.76 .0 make flash
96+ DEFMT_LOG=info cargo +1.77 .0 make flash
9797```
9898
9999## Flash via DFU
@@ -107,15 +107,15 @@ On Fedora, this can be done by calling:
107107
108108``` sh
109109sudo dnf install dfu-util
110- cargo +1.76 .0 install cargo-binutils
110+ cargo +1.77 .0 install cargo-binutils
111111rustup component add llvm-tools-preview
112112```
113113
114114Click the RESET button while holding the BOOT button of the Daisy Patch SM to
115115enter the bootloader. Then call this make target:
116116
117117``` sh
118- cargo +1.76 .0 make flash-dfu
118+ cargo +1.77 .0 make flash-dfu
119119```
120120
121121## Embedded tests
@@ -128,7 +128,7 @@ given in [Flash via ST-Link](#flash-via-st-link).
128128To run one of the integration tests kept under ` firmware/tests ` :
129129
130130``` sh
131- cargo +1.76 .0 make test-embedded button
131+ cargo +1.77 .0 make test-embedded button
132132```
133133
134134## Embedded benchmark
@@ -142,7 +142,7 @@ Before running a benchmark, first make sure to go through the guidance given in
142142To run one of the benchmarks kept under ` benches/src/bin ` :
143143
144144``` sh
145- cargo +1.76 .0 make bench oversampling
145+ cargo +1.77 .0 make bench oversampling
146146```
147147
148148## Firmware size
@@ -153,16 +153,16 @@ the firmware size stays slim and no bloat gets in.
153153Install needed tooling:
154154
155155``` sh
156- cargo +1.76 .0 install cargo-bloat
157- cargo +1.76 .0 install cargo-binutils
158- rustup +1.76 .0 component add llvm-tools-preview
156+ cargo +1.77 .0 install cargo-bloat
157+ cargo +1.77 .0 install cargo-binutils
158+ rustup +1.77 .0 component add llvm-tools-preview
159159```
160160
161161Run the following command often to make sure no unnecessary heavy dependencies
162162are brought in:
163163
164164``` sh
165- cargo +1.76 .0 make bloat
165+ cargo +1.77 .0 make bloat
166166```
167167
168168## Manual
@@ -178,7 +178,7 @@ sudo dnf install inkscape texlive-latex texlive-ec texlive-microtype texlive-pag
178178To build the manual:
179179
180180``` sh
181- cargo +1.76 .0 make manual
181+ cargo +1.77 .0 make manual
182182```
183183
184184The built PDF is then available in ` manual/user/manual.pdf ` .
0 commit comments