#uf2 #elf #automatic #enter #restart #modify #boot-sle

app pico-uf2

elf to uf2, Automatically restart to enter BootSLE

4 releases (stable)

1.0.2 Jul 30, 2024
0.1.0 Jul 30, 2024

#260 in Hardware support

Download history 14/week @ 2024-09-13 9/week @ 2024-09-20 7/week @ 2024-09-27 1/week @ 2024-10-04

58 downloads per month

MIT license

27KB
554 lines

Automatic deployment

Implement log viewing and automatic deployment using a self-built CDC.

1.install

cargo install pico-uf2

2.modify code

#[embassy_executor::main]
async fn main(spawner: Spawner) {
    spawner.spawn(usb_cdc::init()).unwrap();
    // ...... 
}

Complete the example

Option

Arguments:
  <INPUT>  Input file

Options:
  -b, --before <BEFORE>  Start command sent to COM port, default is "Reboot"
  -a, --after <AFTER>    Connect to COM after operation, and send command to COM
  -o, --output <OUTPUT>  UF2 file output location
  -h, --help             Print help
  -V, --version          Print version

This project includes code borrowed or directly used from the following open-source projects:

Dependencies

~3–4.5MB
~79K SLoC