pico-uf2

Crates.iopico-uf2
lib.rspico-uf2
version1.0.2
sourcesrc
created_at2024-07-30 01:48:10.666125
updated_at2024-07-30 08:04:22.142878
descriptionelf to uf2, Automatically restart to enter BootSLE
homepagehttps://github.com/Jaydar/pico-tools
repositoryhttps://github.com/Jaydar/pico-tools/tree/master/pico-uf2
max_upload_size
id1319394
size43,666
(Jaydar)

documentation

https://docs.rs/pico-uf2

README

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:

Commit count: 0

cargo fmt