Skip to content

Commit 28fdf0c

Browse files
docs: Fix broken "run examples" commands (#971)
* docs: Fix broken "run examples" commands * docs: Remove obsolete feature flags note in README
1 parent 88255c4 commit 28fdf0c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,10 @@ specified 'runner'. As the 'runner' is picotool, it will flash your compiled
260260
binary over USB.
261261

262262
```sh
263-
cargo run --release --features "critical-section-impl,rt,defmt" --example pwm_blink
263+
cd rp2040-hal-examples # Or: cd rp235x-hal-examples
264+
cargo run --release --bin pwm_blink
264265
```
265266

266-
(The `pwm_blink` example doesn't need all these feature flags. They are listed here
267-
so you can use the same command for all examples.)
268-
269267
If you want to create a UF2 file, which is loaded by copying it over to the
270268
RPI-RP2 mass storage device, use the `picotool uf2 convert` command on your
271269
compiled program with the `-t elf` argument.
@@ -322,7 +320,8 @@ RP2040 via the first probe it finds, and install your firmware into the Flash
322320
connected to the RP2040.
323321

324322
```sh
325-
cargo run --release --example pwm_blink
323+
cd rp2040-hal-examples # Or: cd rp235x-hal-examples
324+
cargo run --release --bin pwm_blink
326325
```
327326
[RP2040 Project Template]: https://github.com/rp-rs/rp2040-project-template
328327
[RP235x Project Template]: https://github.com/rp-rs/rp235x-project-template

0 commit comments

Comments
 (0)