wohckcin / blackpill

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Black Pill

Preparation

Black Pill uses a STM32F411 which is an Arm Cortex M4 with FPU core. More info about the chip itself can be found in Reference manual PDF.

In order to cross-compile, you'll need to add target used for this microcontroller thumbv7em-none-eabihf, using following command

rustup target add thumbv7em-none-eabihf

Install Probe-rs-debugger

cargo install --force  probe-rs-debugger

code --install-extension probe-rs-debugger-0.4.2.vsix

Toolchain

  • Probe
  • cargo-embed
  • cargo-flash

Usage

Basics

# In your cargo project directory, call
cargo flash --release --chip <chip_name>

# Don't know if your target is supported
# by cargo flash and what it's name is?
cargo flash --list-chips

# You can run your examples as usual with
cargo flash --example <your_example>

About


Languages

Language:Rust 100.0%