As per the book, running cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart gives a usable example where you should be able to run cargo build --example hello.
When doing the builds I'm getting the expected .elf in about 50%.
For the other half, the build fails, building the last step never returns:
Hi, The "embedded Rust" book suggests a starter example, see https://docs.rust-embedded.org/book/start/hardware.html I'm running Windows10, installed Rust itself like this
and the add-ons as required by the mentioned book (https://docs.rust-embedded.org/book/intro/install.html) like this
As per the book, running
cargo generate --git https://github.com/rust-embedded/cortex-m-quickstart
gives a usable example where you should be able to runcargo build --example hello
.When doing the builds I'm getting the expected
.elf
in about 50%. For the other half, the build fails, building the last step never returns:That is, it sits there forever.
I would like to understand why the build fails.
rustc
andcargo
are still visible in Windows' task manager, but they dont seem to do anything ...I ctrl-c'd the whole thing, then tried
cargo build --example hello -vv
and see whatrustc
is doing for the last build/link step:For the above I used 1.57.0, but the problem is the same for 1.56, tried it last week prior to 1.57 release.
Meta
rustc --version --verbose
:Backtrace
``` Using `$env:RUST_BACKTRACE=1` did not change the output compared to what I reported above. ```
Thx to anyone who could take a look into this.