Debugging Error: error[E0463]: can't find crate for `core` the `thumbv8m.main-none-eabihf` target may not be installed |

Hello, I am building my first embedded Rust project.
Board:STM32 NUCLEO-U575ZI-Q.
Ubuntu 22.04.4 LTS
Linux 6.8.0-40-generic
First time using Rust, Docker and OpenOCD Debugging tools.

   Compiling nb v1.1.0
   Compiling void v1.0.2
   Compiling vcell v0.1.3
   Compiling bare-metal v0.2.5
error[E0463]: can't find crate for `core`
  |
  = note: the `thumbv8m.main-none-eabihf` target may not be installed
  = help: consider downloading the target with `rustup target add thumbv8m.main-none-eabihf`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `bare-metal` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `vcell` (lib) due to 1 previous error
error: could not compile `void` (lib) due to 1 previous error
error: could not compile `nb` (lib) due to 1 previous error

 *  The terminal process "cargo 'build'" failed to launch (exit code: 101).
Cortex-Debug: VSCode debugger extension version 1.12.1 git(652d042). Usage info: https://github.com/Marus/cortex-debug#usage
GDB executable "/home/dev/arm-gnu-toolchain-13.2.rel1/bin/arm-none-eabi-gdb/arm-none-eabi-gdb" was not found.
Please configure "cortex-debug.armToolchainPath" or "cortex-debug.gdbPath" correctly.

Arm Path settings

{
    "workbench.colorTheme": "Default High Contrast",
    "git.openRepositoryInParentFolders": "never",
    "cortex-debug.armToolchainPath": "/home/dev/arm-gnu-toolchain-13.2.rel1/bin",
    "workbench.startupEditor": "none"
}

rustup targets

root@8a32e16970a3:/home/app/blinky# rustup target list --installed
thumbv7em-none-eabihf
thumbv8m.main-none-eabihf
x86_64-unknown-linux-gnu

similar issue

my current post

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.