Skip to content

elf to uf2, Automatically restart to enter BootSLE

License

Notifications You must be signed in to change notification settings

Jaydar/pico-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatic deployment

PR2040 Rust automatic deployment tool. Using pico-uf2 and pico-cdc together enables automatic deployment.

1.install

cargo install pico-uf2
cargo add pico-cdc

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:

About

elf to uf2, Automatically restart to enter BootSLE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages