#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

#262 in Hardware support

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
~78K SLoC