| Crates.io | stm32f411ve-disco |
| lib.rs | stm32f411ve-disco |
| version | 0.1.0 |
| created_at | 2025-10-05 03:00:34.797764+00 |
| updated_at | 2025-10-05 03:00:34.797764+00 |
| description | Board support package for STM32F411E-DISCO (Discovery) development board with Embassy async framework |
| homepage | https://github.com/philiplinden/stm32f411ve-disco |
| repository | https://github.com/philiplinden/stm32f411ve-disco |
| max_upload_size | |
| id | 1868568 |
| size | 7,342,205 |
Board support package (BSP) for the STM32F411E-DISCO (32F411EDISCOVERY) development board, built on the Embassy async framework.
thumbv7em-none-eabihfOnboard Features:
Documentation:
# Add Rust target
rustup target add thumbv7em-none-eabihf
# Install probe-rs (if not already installed)
cargo install probe-rs-tools --locked
With your STM32F411E Discovery board connected via USB:
# Test the board connection
probe-rs list
# Run the blinky example to verify everything works
cargo run --example blinky
# Basic Hardware Examples
cargo run --example blinky # Blink green LED (LD4)
cargo run --example leds # LED patterns demo - all 4 LEDs
cargo run --example button # Press button to cycle through LEDs
# Sensor Examples
cargo run --example gyro # Read gyroscope - rotate the board!
cargo run --example compass # Read accelerometer/magnetometer
# Audio Examples
cargo run --example microphone # MEMS microphone demo
cargo run --example audio_dac # Generate beep tones
# Build without flashing
cargo build --release
# Flash with additional output
cargo run --example blinky --release -- --log-level debug
leds - 4 user LEDs (LD3-LD6) with individual and group controlbutton - User button (PA0) with polling supportmicrophone - MP45DT02 MEMS microphone with PDM interfaceaudio - CS43L22 audio DAC with speaker/headphone output and beep generationgyro - L3GD20 3-axis gyroscope with SPI interface
compass - LSM303DLHC e-compass with I2C interface
blinky - Simple LED blink to verify board setupleds - Demonstrate all LED patterns and animationsbutton - Button-controlled LED cyclinggyro - Read and display 3-axis angular rate datacompass - Read accelerometer, magnetometer, and calculate headingmicrophone - Capture audio from MEMS microphone (simplified demo)audio_dac - CS43L22 I2C control interface demo (⚠️ no audio output - see limitations below)The audio_dac example demonstrates I2C communication with the CS43L22 audio DAC chip but does not produce actual sound. The chip requires:
Current Status:
The audio module serves as a control interface reference for projects that need I2C access to the CS43L22.
The microphone module is a simplified GPIO demonstration. Full PDM audio capture would require:
src/ - BSP library modulesexamples/ - Example applications demonstrating BSP featuresdocs/ - Datasheets and reference manualsEmbed.toml - Probe-rs configuration (chip, protocol, etc.).cargo/config.toml - Build defaults.cargo/config.tomlSets default build target and runner command:
thumbv7em-none-eabihfprobe-rs run --chip stm32f411ve --protocol swd --connect-under-resetEmbed.tomlAdditional probe-rs configuration for RTT logging and advanced flashing options.
memory.xLinker script defining Flash (512KB) and RAM (128KB) layout for STM32F411VE.