Skip to content

Commit 3e19367

Browse files
KernelErr9names
authored andcommitted
typo: fix misspelled elf2uf2-rs
In `README.md`, elf2uf2-rs has been misspelled as elf2usb2-rs in installation commands. In `.cargo/config.toml`, a quotation mark need to be added. For users who use VS Code with Rust Analyzer, setting target architecture could help them to avoid warning like no tests module.
1 parent b2f4df6 commit 3e19367

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.cargo/config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# elf2uf2-rs loads firmware over USB when the rp2040 is in boot mode
44
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
55
runner = "probe-run --chip RP2040"
6-
# runner = "elf2uf2-rs -d
6+
# runner = "elf2uf2-rs -d"
77

88
rustflags = [
99
"-C", "linker=flip-link",

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
{
2+
"rust-analyzer.cargo.target": "thumbv6m-none-eabi",
3+
"rust-analyzer.checkOnSave.allTargets": false,
24
"editor.formatOnSave": true
35
}

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cargo install flip-link
3232
# This is our suggested default 'runner'
3333
cargo install probe-run
3434
# If you want to use elf2uf2-rs instead of probe-run, instead do...
35-
cargo install elf2usb2-rs
35+
cargo install elf2uf2-rs
3636
```
3737

3838
## Running
@@ -45,8 +45,17 @@ For a release build
4545
```
4646
DEFMT_LOG=trace cargo run --release
4747
```
48-
48+
49+
To load firmware directly into RP2040, for example you don't have a probe, comment and uncomment following lines in `.cargo/config.toml`:
50+
51+
```
52+
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
53+
# runner = "probe-run --chip RP2040"
54+
runner = "elf2uf2-rs -d"
55+
```
56+
4957
<!-- ROADMAP -->
58+
5059
## Roadmap
5160

5261
NOTE These packages are under active development. As such, it is likely to

0 commit comments

Comments
 (0)