STM32 Black Pill Pinout

The STM32 Black Pill is a compact STM32F411CEU6 development board based on a 100 MHz Arm Cortex-M4 microcontroller with FPU. It exposes two 20-pin headers plus SWD, supports 3.3 V logic, and provides common embedded interfaces including GPIO, ADC, PWM, UART, I2C, SPI/I2S, USB OTG FS, SDIO, SWD, and JTAG. It is a faster and more capable alternative to the STM32 Blue Pill for projects that need more memory, USB-C convenience, and Cortex-M4 DSP/FPU features.

Manufacturer
ST Microelectronics
Package
Dev Board
STM32 Black Pill pinout diagram

Pin reference

PinNameFunctionsDescription
13V33.3V Power<p>3.3 V power reference for the SWD/debug header.</p>
2PA13 / SWDIOSWDIO, GPIO PA13<p>Serial Wire Debug data pin. Normally used for programming/debugging and should not be used as a regular GPIO unless debug access is not needed.</p>
3PA14 / SWCLKSWCLK, GPIO PA14<p>Serial Wire Debug clock pin. Normally used for programming/debugging and should not be used as a regular GPIO unless debug access is not needed.</p>
4GNDGround<p>Ground reference for the SWD/debug header.</p>
5VBATBackup Power Input<p>Backup-domain battery input for RTC/backup registers.</p>
6PC13GPIO PC13, RTC/TAMPER, User LED<p>General-purpose I/O pin. On many Black Pill boards this pin is connected to the onboard user LED; it is a low-drive pin compared with normal GPIOs.</p>
7PC14GPIO PC14, OSC32_IN<p>Low-speed external crystal input. Avoid using as GPIO if the 32.768 kHz LSE crystal is enabled.</p>
8PC15GPIO PC15, OSC32_OUT<p>Low-speed external crystal output. Avoid using as GPIO if the 32.768 kHz LSE crystal is enabled.</p>
9NRSTReset<p>Active-low reset input for the microcontroller.</p>
10PA0GPIO, ADC1_IN0, Timer, UART<p>GPIO PA0 with ADC input, timer channel, and USART2 flow-control support.</p>
11PA1GPIO, ADC1_IN1, Timer, UART<p>GPIO PA1 with ADC input, timer channel, and USART2 flow-control support.</p>
12PA2GPIO, ADC1_IN2, USART2_TX, Timer<p>GPIO PA2 with ADC input and USART2 transmit function.</p>
13PA3GPIO, ADC1_IN3, USART2_RX, Timer<p>GPIO PA3 with ADC input and USART2 receive function.</p>
14PA4GPIO, ADC1_IN4, SPI1_NSS, SPI3_NSS<p>GPIO PA4 with ADC input and SPI chip-select functions.</p>
15PA5GPIO, ADC1_IN5, SPI1_SCK<p>GPIO PA5 with ADC input and SPI1 clock function.</p>
16PA6GPIO, ADC1_IN6, SPI1_MISO, PWM<p>GPIO PA6 with ADC input, SPI1 MISO, and timer/PWM functions.</p>
17PA7GPIO, ADC1_IN7, SPI1_MOSI, PWM<p>GPIO PA7 with ADC input, SPI1 MOSI, and timer/PWM functions.</p>
18PB0GPIO, ADC1_IN8, PWM<p>GPIO PB0 with ADC input and timer/PWM functions.</p>
19PB1GPIO, ADC1_IN9, PWM<p>GPIO PB1 with ADC input and timer/PWM functions.</p>
20PB2 / BOOT1GPIO PB2, BOOT1<p>GPIO PB2. Also associated with BOOT1 boot configuration on STM32F4 devices.</p>
21PB10GPIO, I2C2_SCL, SPI2_SCK, USART3_TX<p>GPIO PB10 with I2C2 clock, SPI2 clock, USART3 transmit, and timer functions.</p>
223V33.3V Power<p>Regulated 3.3 V rail from the onboard regulator.</p>
23GNDGround<p>Ground reference.</p>
245V5V Power Input<p>5 V board rail, commonly used as USB/external 5 V input depending on board wiring. Avoid powering from USB and external 5 V at the same time unless your board has proper protection.</p>
25PB12GPIO, SPI2_NSS, I2C2_SMBA, USART3_CK<p>GPIO PB12 with SPI2 chip-select, I2C2 SMBus alert, and USART3 clock functions.</p>
26PB13GPIO, SPI2_SCK, USART3_CTS, PWM<p>GPIO PB13 with SPI2 clock, USART3 CTS, and timer/PWM functions.</p>
27PB14GPIO, SPI2_MISO, USART3_RTS, PWM<p>GPIO PB14 with SPI2 MISO, USART3 RTS, and timer/PWM functions.</p>
28PB15GPIO, SPI2_MOSI, PWM<p>GPIO PB15 with SPI2 MOSI and timer/PWM functions.</p>
29PA8GPIO, MCO, TIM1_CH1, USART1_CK<p>GPIO PA8 with master clock output, timer/PWM, and USART1 clock functions.</p>
30PA9GPIO, USART1_TX, USB VBUS, PWM<p>GPIO PA9 with USART1 transmit, USB VBUS sensing, and timer/PWM functions.</p>
31PA10GPIO, USART1_RX, USB ID, PWM<p>GPIO PA10 with USART1 receive, USB OTG ID, and timer/PWM functions.</p>
32PA11GPIO, USB_DM, USART1_CTS, CAN_RX<p>GPIO PA11 used as USB OTG FS D- on boards with USB. Also supports USART1 CTS and CAN RX alternate functions.</p>
33PA12GPIO, USB_DP, USART1_RTS, CAN_TX<p>GPIO PA12 used as USB OTG FS D+ on boards with USB. Also supports USART1 RTS and CAN TX alternate functions.</p>
34PA15GPIO, SPI1_NSS, SPI3_NSS, JTAG<p>GPIO PA15 with SPI chip-select functions. Used by JTAG by default on some configurations.</p>
35PB3GPIO, SPI1_SCK, SPI3_SCK, SWO/JTAG<p>GPIO PB3 with SPI clock functions. Also used as SWO/JTAG function in debug configurations.</p>
36PB4GPIO, SPI1_MISO, SPI3_MISO, JTAG<p>GPIO PB4 with SPI MISO functions. Also used as JTAG reset in debug configurations.</p>
37PB5GPIO, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI<p>GPIO PB5 with SPI MOSI functions and I2C1 SMBus alert.</p>
38PB6GPIO, I2C1_SCL, USART1_TX, PWM<p>GPIO PB6 with I2C1 clock, USART1 transmit, and timer/PWM functions.</p>
39PB7GPIO, I2C1_SDA, USART1_RX, PWM<p>GPIO PB7 with I2C1 data, USART1 receive, and timer/PWM functions.</p>
40PB8GPIO, I2C1_SCL, CAN_RX, PWM<p>GPIO PB8 with I2C1 clock, CAN RX, SDIO D4, and timer/PWM functions.</p>
41PB9GPIO, I2C1_SDA, CAN_TX, PWM<p>GPIO PB9 with I2C1 data, CAN TX, SDIO D5, and timer/PWM functions.</p>
425V5V Power Input<p>5 V board rail, commonly used as USB/external 5 V input depending on board wiring. Avoid powering from USB and external 5 V at the same time unless your board has proper protection.</p>
43GNDGround<p>Ground reference.</p>
443V33.3V Power<p>Regulated 3.3 V rail from the onboard regulator.</p>

Report an error on this page