pineflash icon indicating copy to clipboard operation
pineflash copied to clipboard

MacOS, "Bad CPU type in executable" when flashing

Open Stogas opened this issue 5 months ago • 0 comments

PineFlash installs correctly (using generic_unix_install.sh), but after opening, and clicking "Flash" Pinecil v2 to v2.23, the program crashes with the following output:

$ pineflash

thread 'main' panicked at src/submodules/flash.rs:206:18:
Could not flash soldering iron: Os { code: 86, kind: Uncategorized, message: "Bad CPU type in executable" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at /Users/macbook/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.29.15/src/platform_impl/macos/app_state.rs:387:33:
called `Result::unwrap()` on an `Err` value: PoisonError { .. }

Environment info:

$ cargo --version
cargo 1.89.0 (Homebrew)

# MacOS 15.6.1 (24G90
# Apple M4 Pro

Stogas avatar Sep 15 '25 12:09 Stogas