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
Pin reference
| Pin | Name | Functions | Description |
|---|---|---|---|
| 1 | 3V3 | 3.3V Power | <p>3.3 V power reference for the SWD/debug header.</p> |
| 2 | PA13 / SWDIO | SWDIO, 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> |
| 3 | PA14 / SWCLK | SWCLK, 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> |
| 4 | GND | Ground | <p>Ground reference for the SWD/debug header.</p> |
| 5 | VBAT | Backup Power Input | <p>Backup-domain battery input for RTC/backup registers.</p> |
| 6 | PC13 | GPIO 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> |
| 7 | PC14 | GPIO PC14, OSC32_IN | <p>Low-speed external crystal input. Avoid using as GPIO if the 32.768 kHz LSE crystal is enabled.</p> |
| 8 | PC15 | GPIO PC15, OSC32_OUT | <p>Low-speed external crystal output. Avoid using as GPIO if the 32.768 kHz LSE crystal is enabled.</p> |
| 9 | NRST | Reset | <p>Active-low reset input for the microcontroller.</p> |
| 10 | PA0 | GPIO, ADC1_IN0, Timer, UART | <p>GPIO PA0 with ADC input, timer channel, and USART2 flow-control support.</p> |
| 11 | PA1 | GPIO, ADC1_IN1, Timer, UART | <p>GPIO PA1 with ADC input, timer channel, and USART2 flow-control support.</p> |
| 12 | PA2 | GPIO, ADC1_IN2, USART2_TX, Timer | <p>GPIO PA2 with ADC input and USART2 transmit function.</p> |
| 13 | PA3 | GPIO, ADC1_IN3, USART2_RX, Timer | <p>GPIO PA3 with ADC input and USART2 receive function.</p> |
| 14 | PA4 | GPIO, ADC1_IN4, SPI1_NSS, SPI3_NSS | <p>GPIO PA4 with ADC input and SPI chip-select functions.</p> |
| 15 | PA5 | GPIO, ADC1_IN5, SPI1_SCK | <p>GPIO PA5 with ADC input and SPI1 clock function.</p> |
| 16 | PA6 | GPIO, ADC1_IN6, SPI1_MISO, PWM | <p>GPIO PA6 with ADC input, SPI1 MISO, and timer/PWM functions.</p> |
| 17 | PA7 | GPIO, ADC1_IN7, SPI1_MOSI, PWM | <p>GPIO PA7 with ADC input, SPI1 MOSI, and timer/PWM functions.</p> |
| 18 | PB0 | GPIO, ADC1_IN8, PWM | <p>GPIO PB0 with ADC input and timer/PWM functions.</p> |
| 19 | PB1 | GPIO, ADC1_IN9, PWM | <p>GPIO PB1 with ADC input and timer/PWM functions.</p> |
| 20 | PB2 / BOOT1 | GPIO PB2, BOOT1 | <p>GPIO PB2. Also associated with BOOT1 boot configuration on STM32F4 devices.</p> |
| 21 | PB10 | GPIO, I2C2_SCL, SPI2_SCK, USART3_TX | <p>GPIO PB10 with I2C2 clock, SPI2 clock, USART3 transmit, and timer functions.</p> |
| 22 | 3V3 | 3.3V Power | <p>Regulated 3.3 V rail from the onboard regulator.</p> |
| 23 | GND | Ground | <p>Ground reference.</p> |
| 24 | 5V | 5V 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> |
| 25 | PB12 | GPIO, SPI2_NSS, I2C2_SMBA, USART3_CK | <p>GPIO PB12 with SPI2 chip-select, I2C2 SMBus alert, and USART3 clock functions.</p> |
| 26 | PB13 | GPIO, SPI2_SCK, USART3_CTS, PWM | <p>GPIO PB13 with SPI2 clock, USART3 CTS, and timer/PWM functions.</p> |
| 27 | PB14 | GPIO, SPI2_MISO, USART3_RTS, PWM | <p>GPIO PB14 with SPI2 MISO, USART3 RTS, and timer/PWM functions.</p> |
| 28 | PB15 | GPIO, SPI2_MOSI, PWM | <p>GPIO PB15 with SPI2 MOSI and timer/PWM functions.</p> |
| 29 | PA8 | GPIO, MCO, TIM1_CH1, USART1_CK | <p>GPIO PA8 with master clock output, timer/PWM, and USART1 clock functions.</p> |
| 30 | PA9 | GPIO, USART1_TX, USB VBUS, PWM | <p>GPIO PA9 with USART1 transmit, USB VBUS sensing, and timer/PWM functions.</p> |
| 31 | PA10 | GPIO, USART1_RX, USB ID, PWM | <p>GPIO PA10 with USART1 receive, USB OTG ID, and timer/PWM functions.</p> |
| 32 | PA11 | GPIO, 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> |
| 33 | PA12 | GPIO, 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> |
| 34 | PA15 | GPIO, SPI1_NSS, SPI3_NSS, JTAG | <p>GPIO PA15 with SPI chip-select functions. Used by JTAG by default on some configurations.</p> |
| 35 | PB3 | GPIO, SPI1_SCK, SPI3_SCK, SWO/JTAG | <p>GPIO PB3 with SPI clock functions. Also used as SWO/JTAG function in debug configurations.</p> |
| 36 | PB4 | GPIO, SPI1_MISO, SPI3_MISO, JTAG | <p>GPIO PB4 with SPI MISO functions. Also used as JTAG reset in debug configurations.</p> |
| 37 | PB5 | GPIO, I2C1_SMBA, SPI1_MOSI, SPI3_MOSI | <p>GPIO PB5 with SPI MOSI functions and I2C1 SMBus alert.</p> |
| 38 | PB6 | GPIO, I2C1_SCL, USART1_TX, PWM | <p>GPIO PB6 with I2C1 clock, USART1 transmit, and timer/PWM functions.</p> |
| 39 | PB7 | GPIO, I2C1_SDA, USART1_RX, PWM | <p>GPIO PB7 with I2C1 data, USART1 receive, and timer/PWM functions.</p> |
| 40 | PB8 | GPIO, I2C1_SCL, CAN_RX, PWM | <p>GPIO PB8 with I2C1 clock, CAN RX, SDIO D4, and timer/PWM functions.</p> |
| 41 | PB9 | GPIO, I2C1_SDA, CAN_TX, PWM | <p>GPIO PB9 with I2C1 data, CAN TX, SDIO D5, and timer/PWM functions.</p> |
| 42 | 5V | 5V 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> |
| 43 | GND | Ground | <p>Ground reference.</p> |
| 44 | 3V3 | 3.3V Power | <p>Regulated 3.3 V rail from the onboard regulator.</p> |
