pico-uf2 1.0.2

elf to uf2, Automatically restart to enter BootSLE
pico-uf2-1.0.2 is not a library.

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

Acknowledgements and Copyright

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