Skip to content

error while compiling example 05-led-roulette #287

@bss03arg

Description

@bss03arg

cargo build --target thumbv7em-none-eabihf
Compiling typenum v1.12.0
Compiling semver-parser v0.7.0
Compiling version_check v0.9.2
Compiling nb v1.0.0
Compiling proc-macro2 v1.0.24
Compiling void v1.0.2
Compiling cortex-m v0.7.1
Compiling unicode-xid v0.2.1
Compiling stable_deref_trait v1.2.0
Compiling vcell v0.1.3
Compiling syn v1.0.60
Compiling cortex-m v0.6.6
Compiling bitfield v0.13.2
Compiling cortex-m-rt v0.6.13
Compiling cortex-m v0.5.10
Compiling r0 v0.2.2
Compiling stm32f30x v0.7.1
Compiling aligned v0.2.0
Compiling f3 v0.6.1
Compiling panic-halt v0.2.0
Compiling nb v0.1.3
Compiling volatile-register v0.2.0
Compiling semver v0.9.0
Compiling generic-array v0.14.4
Compiling embedded-hal v0.2.4
Compiling rustc_version v0.2.3
Compiling bare-metal v0.2.5
Compiling cast v0.2.3
Compiling quote v1.0.8
Compiling generic-array v0.12.3
Compiling generic-array v0.13.2
Compiling generic-array v0.11.1
Compiling l3gd20 v0.2.0
Compiling as-slice v0.1.4
Compiling aligned v0.3.4
error[E0432]: unresolved import cortex_m_0_6::peripheral::itm
--> /Users/ccui/.cargo/registry/src/crates.rustcc.com-a21e0f92747beca3/cortex-m-0.5.10/src/peripheral/mod.rs:91:46
|
91 | pub use cortex_m_0_6::peripheral::{cbp, fpb, itm, tpiu};
| ^^^ no itm in peripheral

error: aborting due to previous error

For more information about this error, try rustc --explain E0432.
error: could not compile cortex-m

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

I use macbook pro with M1 CPU, rustc 1.50.0-beta.8 (1cd030396 2021-01-20)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions