rust-embedded / embedonomicon

How to bootstrap support for a no_std target
https://docs.rust-embedded.org/embedonomicon/
Apache License 2.0
208 stars 34 forks source link

remedy for `eh_personality` error #43

Open U007D opened 5 years ago

U007D commented 5 years ago

If one happens to have a Cargo.toml profile set to unwinding panics, a language item required, but not found: 'eh_personality' error will result. PR #42 adds a brief note explaining how to resolve the error.

gl4eqen commented 5 years ago

It happened to me as well but it was caused by not setting a proper target

[build]
target = "thumbv7m-none-eabi"

in .cargo/config or via command-line options.

tomioe commented 4 years ago
[build]
target = "thumbv7m-none-eabi"

It should be:

[build]
target = "thumbv7em-none-eabihf"