#Error while executing cargo run
8 messages · Page 1 of 1 (latest)
the path indicates you are compiling for the thumbv7em-none-eabihf target platform
binaries produced for that target cannot be run on your own machine, unless you have an emulator handy (in which case you need to tell Cargo about it)
if you aren't intending to be doing embedded development cross-compilation, then you should find where thumbv7em-none-eabihf came from and stop doing that
i would like to use qemu to test it from the command line
OK, you want this option: https://doc.rust-lang.org/cargo/reference/config.html#targettriplerunner
[target.thumbv7em-none-eabihf]
runner = ["qemu", "--whatever-options-you-need-for-qemu"]
note that this goes in yourproject/.cargo/config.toml, not yourproject/Cargo.toml