-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language item required, but not found: panic_fmt #67
Comments
That sounds like the "abort-on-panic" feature has not been enabled for the cortex-m-rt crate. You can either enable that or provide your own |
If you are depending on the f3 crate, instead of re-using the f3 Cargo project, then you'll need to enable the cortex-m-rt feature like this: [dependencies.cortex-m-rt]
features = ["abort-on-panic"]
version = "0.3.12" |
I have the following in my Cargo.toml :
Here is my complete Cargo file :
|
That looks correct. Hmm, you do have an |
Give me a few minutes. Something definitively seems to be wrong in the f3 crate (it's missing the |
Just to rule out some rustc weirdness. What nightly version are you using? @clebi |
Actually the f3 crate is OK. f3 is pulling cortex-m-rt into mix through its stm32f30x dependency. Perhaps you really are missing the |
I am on the nightly rustc 1.25.0-nightly (da569fa9d 2018-01-16). I have the extern crate f3 in my main.rs:
|
I don't see any obvious problem and I can't repro locally with the f3 examples. The only thing that occurs to me if you got a "lemon" version for the cortex-m-rt crate. v0.3.10 and v0.3.11 are broken and already yanked but if you updated your lockfile before I got to yank them you may be using the broken version. I suggest forcing the cortex-m-rt version to be at least v0.3.12 in your Cargo.toml. |
My cortex-m-rt seems to be at version 0.3.12.
I can send you an archive of the project. |
Please do. |
Here it is: i2c_magnetic.zip |
Oh, I see now. The "rt" feature of the stm32f30x needs to be enable or the cortex-m-rt won't be included in the dependency graph. You can work around the issue by adding these lines to your Cargo.toml: [dependencies.stm32f30x]
version = "0.6.0"
features = ["rt"] But I think it would make most sense to re-export the "rt" feature through the stm32f30x-hal and f3 crates. |
It's working now ! thanks. |
Yay!
Thank you for reporting the issue and pointing holes in the crates. I'm closing this issue though because this should be fixed in stm32f30x-hal and f3. |
Hello,
Trying to update to the last version of this crate, I had the following error at compilation :
I also updated the f3 crate to the 0.5.1 version.
The text was updated successfully, but these errors were encountered: