Black Pill F401¶
lbuild config: modm:black-pill-f401
STM32F401CCU "Mini-F401" Minimum System Development Board
Cheap and bread-board-friendly board for STM32F401 series. Sold for less than 4 USD on Aliexpress. Attention: There are two variants: Mini-F411 and the cheaper Mini-F401.
https://stm32-base.org/boards/STM32F401CEU6-WeAct-Black-Pill-V3.0
Programming¶
Since the board has no St-Link programmer on the board,
you must use DFU (Device Firmware Update (via USB)) to program the board.
A DFU command is integrated into the modm:build:scons tool and can be called as follows:
scons program-dfu
Logging¶
To log via RTT attach a debugger to the SWD port and select the RTT option:
<option name="modm:board:black-pill-f401:with_rtt">yes</option>
SPI Flash¶
The footprint of a W25QxxJV SPI flash on the back is not populated. A soldered
flash is connected to SPI1 with the pins in Board::flash.
Configuration¶
<library>
<options>
<option name="modm:target">stm32f401ccu6</option>
</options>
<modules>
<module>modm:board:black-pill-f401</module>
</modules>
</library>