错误[E0463]:找不到“核心”板条箱注意:可能未安装“ thumbv7m-none-eabi”目标

问题描述

我正在尝试闪烁蓝药(STM32臂)上的LED,并按照此tutorial中的说明进行操作,但是在尝试编译代码时遇到此错误。我使用ubuntu。

我只是按照教程中的说明安装了防锈/货物。 我安装了stlink,没有任何生锈,货物或bluepil的经验。

$ cargo build --release:

        error[E0463]: can't find crate for `core`
      |
      = note: the `thumbv7m-none-eabi` target may not be installed

它是否取决于./cargo/config文件

$ rustup show
Default host: x86_64-unkNown-linux-gnu
rustup home:  /home/marco/snap/rustup/common/rustup

installed toolchains
--------------------

stable-x86_64-unkNown-linux-gnu (default)
nightly-x86_64-unkNown-linux-gnu

installed targets for active toolchain
--------------------------------------

thumbv7m-none-eabi
x86_64-unkNown-linux-gnu

active toolchain
----------------

stable-x86_64-unkNown-linux-gnu (default)
rustc 1.46.0 (04488afe3 2020-08-24)
$ rustup target add thumbv7em-none-eabi
info: downloading component 'rust-std' for 'thumbv7em-none-eabi'
info: installing component 'rust-std' for 'thumbv7em-none-eabi'
info: Defaulting to 500.0 MiB unpack ram
$ cargo build --release
   Compiling semver-parser v0.7.0
   Compiling typenum v1.12.0
   Compiling proc-macro2 v1.0.19
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.39
   Compiling stable_deref_trait v1.2.0
error[E0463]: can't find crate for `core`
  |
  = note: the `thumbv7m-none-eabi` target may not be installed

它是否取决于“ Cargo.toml”文件中的名称?我在做什么错了?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)