Individual skill

stm32f401rc-blackpill

Firmware development for the 40-pin "Black Pill"-format board with an STM32F401RCT6 (STM32F401RC, LQFP64, 256 KB flash, 64 KB RAM, 84 MHz) that ships with the WeAct Studio HID Bootloader (USB 0483:572A, flash 0x08000000-0x08003FFF, app at 0x08004000) — its PC13 LED, KEY button on PA0, 25 MHz HSE, USB-C on USB_OTG_FS, and the PlatformIO + STM32Cube HAL setup around them, including a USB CDC virtual COM port for printf debugging. Use when working on this board, an unbranded F401RCT6 Black Pill clone, or any STM32F401/F411 board that enumerates as "WeAct Studio HID Bootloader": project setup, platformio.ini, linking at 0x08004000, flashing through the HID bootloader or ROM DFU, the app starting behind a bootloader (VTOR, SysTick, clock hand-off), clock/PLL configuration for 84 MHz plus 48 MHz USB, printf/serial console over USB (no /dev/cu or COM port), a blink that never starts or hangs in HAL_Delay, entering or recovering the bootloader, or debugging why something on the board does not work.

skills/stm32/stm32f401rc-blackpill/SKILL.md

Read pinned source

Source commit 816967f30a7dbdf4759ad585b822eda3575f720c

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
Yes
Repository scan complete
No
Skill scan complete
No
Observed behavior
Network or broad shell
Last checked
Nov 11, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
27
Repository last updated
Oct 30, 2026
License
MIT

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# STM32F401RCT6 "Black Pill" with the WeAct HID bootloader

Board-specific firmware knowledge. The board's defining feature is not the chip but what sits in the
first 16 KB of its flash: WeAct's HID bootloader. Almost every failure on this board comes from code
that assumes it owns 0x08000000 and a freshly reset chip — neither is true here. Read the reference
files rather than guessing.

- `reference/board-hardware.md` — the hardware (MCU, pins, header, clocks, memory map with the
  bootloader), a full description of the bootloader's behaviour and protocol, PlatformIO
  configuration, flashing and recovery routes, and a symptom → cause → fix table (§9).
- `reference/recipes.md` — copy-paste code taken from `template/`: `platformio.ini`, the linker-script
  change, the hand-off `Reset_Handler`, the 84/48 MHz clock tree, the USB CDC console, the flasher,
  bootloader reinstall.
- `template/` — a **working PlatformIO project**: blink + USB CDC `printf` console, flashed over USB
Back to top