Home / Pinout / ESP32-P4
ESP32-P4 pinout & GPIO reference
Espressif’s GPIO-richest SoC, with MIPI-CSI / MIPI-DSI, H.264 encoding and Ethernet MAC, aimed at HMI displays and edge computing. It has no radio of its own — network via ESP-Hosted / ESP-AT with an ESP32-C/S co-processor.
Data verified:2026-10-20 · Cross-checked against Espressif datasheets and the ESP-IDF programming guide. Always confirm with the official document before finalizing a design.
Official documentation:link 1 · link 2
Verify against official docs:HP core clock ceiling (360 MHz vs 400 MHz variants and their ordering codes) · How many GPIOs each package breaks out, and which pins carry USB 2.0 HS
Key specifications
| Core | RISC-V 32-bit dual-core (HP) + single-core LP (up to 40 MHz) |
|---|---|
| Clock | HP core up to 360 MHz (the datasheet notes a 400 MHz variant — confirm with Espressif) |
| SRAM | 768 KB HP L2MEM · 32 KB LP SRAM · 8 KB SPM |
| Wireless | No Wi-Fi / no Bluetooth (pair with an ESP32-C/S series co-processor) |
| USB | USB 2.0 HS OTG + USB 2.0 FS OTG + USB Serial/JTAG (GPIO24/25) |
| ADC | ADC1: GPIO16–23 · ADC2: GPIO49–54 |
| DAC | None |
| Touch | TOUCH0–TOUCH13 (GPIO2–15) |
| GPIO | 55 physical GPIOs: 0–54 (5 of them are strapping pins) |
| Strapping | GPIO34 / GPIO35 / GPIO36 / GPIO37 / GPIO38 |
Traps that cost you a board respin
- No wireless at all: networking requires an ESP32-C/S/H co-processor (SPI / SDIO / UART with ESP-Hosted or ESP-AT).
- USB-JTAG occupies GPIO24 and GPIO25 by default; reconfiguring them as GPIO disables USB-JTAG.
- Five strapping pins — GPIO34 through GPIO38 — are latched at power-up.
- GPIO 0–15 double as LP_GPIO0–15 managed by the LP core, and GPIO2–15 also carry TOUCH0–13.
- The default HP clock is 360 MHz; for a 400 MHz part confirm the exact ordering code with Espressif.
Full GPIO table
| GPIO | Status | Alternate functions |
|---|---|---|
GPIO0 | Usable | LP_GPIO0 |
GPIO1 | Usable | LP_GPIO1 |
GPIO2 | Usable | TOUCH0LP_GPIO2 |
GPIO3 | Usable | TOUCH1LP_GPIO3 |
GPIO4 | Usable | TOUCH2LP_GPIO4 |
GPIO5 | Usable | TOUCH3LP_GPIO5 |
GPIO6 | Usable | TOUCH4LP_GPIO6 |
GPIO7 | Usable | TOUCH5LP_GPIO7 |
GPIO8 | Usable | TOUCH6LP_GPIO8 |
GPIO9 | Usable | TOUCH7LP_GPIO9 |
GPIO10 | Usable | TOUCH8LP_GPIO10 |
GPIO11 | Usable | TOUCH9LP_GPIO11 |
GPIO12 | Usable | TOUCH10LP_GPIO12 |
GPIO13 | Usable | TOUCH11LP_GPIO13 |
GPIO14 | Usable | TOUCH12LP_GPIO14 |
GPIO15 | Usable | TOUCH13LP_GPIO15 |
GPIO16 | Usable | ADC1_CH0 |
GPIO17 | Usable | ADC1_CH1 |
GPIO18 | Usable | ADC1_CH2 |
GPIO19 | Usable | ADC1_CH3 |
GPIO20 | Usable | ADC1_CH4 |
GPIO21 | Usable | ADC1_CH5 |
GPIO22 | Usable | ADC1_CH6 |
GPIO23 | Usable | ADC1_CH7 |
GPIO24 | Usable | USB-JTAG |
GPIO25 | Usable | USB-JTAG |
GPIO26 | Usable | General GPIO |
GPIO27 | Usable | General GPIO |
GPIO28 | Usable | General GPIO |
GPIO29 | Usable | General GPIO |
GPIO30 | Usable | General GPIO |
GPIO31 | Usable | General GPIO |
GPIO32 | Usable | General GPIO |
GPIO33 | Usable | General GPIO |
GPIO34 | Usable | Strapping |
GPIO35 | Usable | Strapping |
GPIO36 | Usable | Strapping |
GPIO37 | Usable | Strapping |
GPIO38 | Usable | Strapping |
GPIO39 | Usable | General GPIO |
GPIO40 | Usable | General GPIO |
GPIO41 | Usable | General GPIO |
GPIO42 | Usable | General GPIO |
GPIO43 | Usable | General GPIO |
GPIO44 | Usable | General GPIO |
GPIO45 | Usable | General GPIO |
GPIO46 | Usable | General GPIO |
GPIO47 | Usable | General GPIO |
GPIO48 | Usable | General GPIO |
GPIO49 | Usable | ADC2_CH0 |
GPIO50 | Usable | ADC2_CH1 |
GPIO51 | Usable | ADC2_CH2ANA_CMPR_CH0 reference voltage |
GPIO52 | Usable | ADC2_CH3ANA_CMPR_CH0 in-phase input |
GPIO53 | Usable | ADC2_CH4ANA_CMPR_CH1 reference voltage |
GPIO54 | Usable | ADC2_CH5ANA_CMPR_CH1 in-phase input |
Individual GPIO pages
Related
ESP32 PinoutClassic · ESP32-D0WD / WROOM / WROVERESP32-S3 PinoutXtensa LX7 dual-core · native USB · vector extensionsESP32-C3 PinoutRISC-V single-core · low cost · native USBESP32-S2 PinoutXtensa LX7 single-core · native USB OTG · no BluetoothESP32-C6 PinoutRISC-V dual-core · Wi-Fi 6 · Thread / Zigbee / MatterESP32-H2 PinoutRISC-V 96 MHz · no Wi-Fi · low-power Thread / Zigbee node
Chip comparisonESP32 / S2 / S3 / C3 / C6 / H2 / P4
Peripheral guidesI²C · SPI · UART · RMT · LEDC · deep sleep