Free shipping on orders over $99 · Prices locked while stock lasts
SupplyDealBroker

Components

Getting Started With STM32: Your First Blink in 15 Minutes

From unboxing a Black Pill to running your first program.

· 3 min read

Key takeaways

  • Install STM32CubeIDE or use Arduino with STM32duino.
  • Use DFU mode over USB-C to flash.
  • Start with the onboard LED.

What you need

A Black Pill board, a USB-C cable and a computer. No external programmer is required thanks to the DFU bootloader.

Flashing

Hold BOOT0, tap reset, then upload. The board appears as a DFU device.

Next steps

Try timers and PWM to dim an LED, then read a sensor over I2C.

Pro tip: Add an ST-Link debugger later for breakpoints and step debugging.

Frequently asked questions

Products mentioned in this article

STM32F411 Black Pill (5-pack)
-41%

Components

STM32F411 Black Pill (5-pack)

$26.40

$45.00

Shop the category:Components →

Keep reading