You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create a MonoTimer and the code is not compiling.
I'm receiving a message that could point to mixed crates or incompatibility in the dependencies.
Perhaps cortex-m v0.6.2 and cortex-m v0.5.10? I don't understand how is that cargo tree is listing cortex-m v0.6.2 as a dependency of cortex-m v0.5.10 (inside stm32f30x-hal v0.2.0dependency; see cargo tree output below).
error[E0308]: mismatched types
--> src/core/mod.rs:27:37
|
27 | let chrono = MonoTimer::new(cp.DWT, clocks);
| ^^^^^^ expected struct `cortex_m::peripheral::DWT`, found a different struct `cortex_m::peripheral::DWT`
|
= note: perhaps two different versions of crate `cortex_m` are being used?
Dependencies
The important parts of my Cargo.toml look like this:
[dependencies]
cortex-m = "0.6.2"
cortex-m-rt = "0.6.12"
panic-halt = "0.2.0"
[dependencies.f3]
features = ["rt"]
version = "0.6.1"
228: Added so attributes and cfgs are applied on the trampolines as well r=jonas-schievink a=korken89
I made a first go at #223, but maybe this implementation takes things we do not want to propagate.
If you come up with something that should not propagate, please comment here.
Closes#223Closesrust-embedded/cortex-m-rt#213
Co-authored-by: Emil Fresk <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Error Description
I'm trying to create a MonoTimer and the code is not compiling.
I'm receiving a message that could point to mixed crates or incompatibility in the dependencies.
Perhaps
cortex-m v0.6.2
andcortex-m v0.5.10
? I don't understand how is thatcargo tree
is listingcortex-m v0.6.2
as a dependency ofcortex-m v0.5.10
(insidestm32f30x-hal v0.2.0
dependency; seecargo tree
output below).Portion of code where I'm creating the MonoTimer:
Error message:
Dependencies
The important parts of my Cargo.toml look like this:
Output of
cargo tree
:Additional information
The text was updated successfully, but these errors were encountered: