cargo-flash icon indicating copy to clipboard operation
cargo-flash copied to clipboard

Detect when binary is for the wrong architecture

Open Tiwalun opened this issue 4 years ago • 2 comments

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.

Tiwalun avatar Dec 31 '19 12:12 Tiwalun

This could also be implemented for https://github.com/probe-rs/cargo-embed.

Yatekii avatar Jul 17 '20 23:07 Yatekii

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?

Yatekii avatar Jan 29 '22 01:01 Yatekii