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();
// ......
}
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: