Skip to content

Commit add2f03

Browse files
mquinsonogoffart
authored andcommitted
README: Advice to use elf2uf2-rs cargo extension
1 parent 5c3639c commit add2f03

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,17 @@ classic template at https://github.com/slint-ui/slint-rust-template.
2525
```
2626
cargo run --features simulator
2727
```
28-
4. If you have a [RaspberryPi Pico](https://www.raspberrypi.com/products/raspberry-pi-pico/) with a [2.8 inch Waveshare Touch Screen](https://www.waveshare.com/pico-restouch-lcd-2.8.htm), run on the device with
29-
```
30-
cargo build --target=thumbv6m-none-eabi --features=pico --release && elf2uf2-rs -d target/thumbv6m-none-eabi/release/project-name
31-
```
28+
4. If you have a [RaspberryPi Pico](https://www.raspberrypi.com/products/raspberry-pi-pico/) with a [2.8 inch Waveshare Touch Screen](https://www.waveshare.com/pico-restouch-lcd-2.8.htm):
29+
30+
a. Install the cargo extension to create UF2 images for the RP2040 USB Bootloader
31+
```
32+
cargo install elf2uf2-rs --locked
33+
```
34+
35+
b. Run on the device
36+
```
37+
cargo run --target=thumbv6m-none-eabi --features=pico --release
38+
```
3239
3340
In order to port to your device, you will have to replace all the code that is specific to the RaspberryPi Pico.
3441
See also the instructions on https://slint-ui.com/snapshots/master/docs/rust/slint/docs/mcu/index.html

0 commit comments

Comments
 (0)