The bootloader uses embassy-boot to interact with the flash.
embassy-boot
Flashing the bootloader
cargo flash --release --chip RP2040
To debug, use cargo run and enable the debug feature flag
cargo run
cargo run --release --features debug