cargo-flash
cargo-flash copied to clipboard
Detect when binary is for the wrong architecture
Currently, cargo-flash will try to flash binaries for any architectures.
Based on the cargo information, we should be able to detect if the user tries to flash a binary compiled for an unsupported architecture, and show an error message.
This could also be implemented for https://github.com/probe-rs/cargo-embed.
Should this be done here @Tiwalun? I think it might be helpful inside probe_rs_cli_util::flash::run_flash_download
. What do you think?