embedonomicon icon indicating copy to clipboard operation
embedonomicon copied to clipboard

remedy for `eh_personality` error

Open U007D opened this issue 6 years ago • 2 comments

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.

U007D avatar Jan 30 '19 16:01 U007D

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.

gl4eqen avatar Nov 01 '19 20:11 gl4eqen

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

It should be:

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

tomioe avatar Apr 15 '20 12:04 tomioe