ESP32-P4
Dual-core 400 MHz RISC-V application chip with an LP RISC-V core, 16 or 32 MB in-package PSRAM, MIPI CSI/DSI, H264, USB 2.0 High-Speed OTG and Ethernet MAC. It has no radio; flash is always off-package. The datasheet (v0.7) is preliminary and covers chip revision v3.x.
In short
- 400 MHz dual-core RISC-V with FPU and AI/DSP extensions. Two HP RISC-V cores at up to 400 MHz with single-precision floating point (RV32IMAFC) and a custom extension with 128-bit vector operations.1
- 16 or 32 MB PSRAM in the package. A 16-line, 1.8 V PSRAM at up to 250 MHz DDR sits inside the package; the datasheet gives 8 Gbit/s as its theoretical bandwidth.1
- Camera and display pipeline. MIPI CSI and MIPI DSI, an ISP, a pixel-processing accelerator, a JPEG codec and a baseline H264 encoder rated at up to 1080p@30fps.1
- USB 2.0 High-Speed and Ethernet. USB 2.0 High-Speed OTG with an integrated UTMI transceiver (host or device at 480 Mbit/s) and a 10/100 Ethernet MAC for an external PHY.1
- LP RISC-V core for Deep-sleep work. A 40 MHz LP RISC-V core and 32 KB LP SRAM stay powered in Deep-sleep and can access LP IO, LP peripherals and timers.1
Overview
Within the family
Highlighted: ESP32-P4. Click a bar to open another chip.
GPIO map
- 0
- 1
- 2T1
- 3T2
- 4T3
- 5T4
- 6T5
- 7T6
- 8T7
- 9T8
- 10T9
- 11T10
- 12T11
- 13T12
- 14T13
- 15T14
- 16ADC1·0
- 17ADC1·1
- 18ADC1·2
- 19ADC1·3
- 20ADC1·4
- 21ADC1·5
- 22ADC1·6
- 23ADC1·7
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49ADC2·0
- 50ADC2·1
- 51ADC2·2
- 52ADC2·3
- 53ADC2·4
- 54ADC2·5
SOC_GPIO_VALID_GPIO_MASK). Not every package brings out all of them; see the variants table.- Strapping: GPIO 34, 35, 36, 37, 38. GPIO35–GPIO38 select the boot mode, GPIO36 also gates ROM messages on UART0, GPIO34 selects the JTAG source.
- USB: GPIO 24, 25, 26, 27. Two full-speed USB PHY pairs: GPIO24/25 (USB Serial/JTAG by default) and GPIO26/27 (Full-Speed OTG by default). The High-Speed OTG uses dedicated pins 49/50, which are not GPIOs.
- JTAG: GPIO 2, 3, 4, 5. GPIO2 = MTCK, GPIO3 = MTDI, GPIO4 = MTMS, GPIO5 = MTDO.1
- UART0: GPIO 37, 38. GPIO37 = UART0 TXD, GPIO38 = UART0 RXD (both are also strapping pins).1
- 32 kHz XTAL: GPIO 1, 0. GPIO1 = XTAL_32K_P, GPIO0 = XTAL_32K_N.1
Strapping pins in detail: ESP32-P4 strapping pins and boot modes.
Specifications
| Core | |
|---|---|
| Architecture | 32-bit RISC-V (RV32IMAFC + Zc, Zb, custom AI/DSP extension)1 |
| HP cores | 2 (HP) + 1 LP core12 |
| Max clock | 400 MHz1 |
| FPU | Yes, single precision (F extension)12 |
| Low-power core | LP RISC-V core (RV32IMAC), up to 40 MHz12 |
| Memory | |
| SRAM | 768 KB HP L2MEM (+ 8 KB SPM)1 |
| ROM | 128 KB HP ROM (+ 16 KB LP ROM)1 |
| RTC / LP SRAM | 32 KB1 |
| Flash in package | — None: flash is always off-package |
| PSRAM in package | 16 or 32 MB, 16-line, 1.8 V, up to 250 MHz DDR12 |
| External memory | Off-package flash up to 64 MB (SPI, Dual SPI, Quad SPI/QPI, up to 120 MHz) on dedicated pins; PSRAM is in-package only1 |
| Radio | |
| Wi-Fi | — |
| 5 GHz band | — |
| Wi-Fi 6 | — |
| Bluetooth LE | — |
| Bluetooth Classic | — |
| IEEE 802.15.4 | — |
| GPIO and analog | |
| GPIO | 55 (GPIO0–GPIO54: 16 LP + 39 HP)12 |
| ADC | 2 × 12-bit SAR ADC, 14 channels (ADC1: 8, ADC2: 6)132 |
| DAC | — |
| Touch | 14 channels (GPIO2–GPIO15)12 |
| Temperature sensor | Yes12 |
| Interfaces | |
| UART | 6: 5 HP UARTs + 1 LP UART12 |
| I²C | 3: 2 HP + 1 LP; plus one I3C master12 |
| I²S | 3 (+ 1 receive-only LP I2S)12 |
| SPI | 2 general-purpose (GP-SPI2 with Octal/OPI as master, GP-SPI3) + 1 LP-SPI; the MSPI controllers serve flash and PSRAM1 |
| LED PWM | 8 channels, 4 timers, up to 20-bit12 |
| MCPWM | 2 (each: 3 timers, 3 operators, capture)12 |
| RMT | 8 channels: 4 TX + 4 RX12 |
| TWAI (CAN) | 3 (ISO 11898-1, CAN 2.0)12 |
| Pulse counter | 4 units, 2 channels each12 |
| USB OTG | USB 2.0 High-Speed OTG (480 Mbit/s, integrated PHY, dedicated pins) + USB 2.0 Full-Speed OTG12 |
| USB Serial/JTAG | Yes, USB 2.0 full speed (12 Mbit/s), GPIO24/GPIO25 by default12 |
| SD / SDIO | SD/MMC host: 2 cards, SD 3.0/3.01, SDIO 3.0, MMC 4.51, 1/4/8-bit12 |
| Ethernet MAC | 10/100 Mbit/s MAC, external PHY over MII or RMII, IEEE 158812 |
| LCD / camera | MIPI DSI and MIPI CSI (2-lane × 1.5 Gbps each), parallel LCD 8/16/24-bit, DVP camera 8/16-bit; ISP, PPA, JPEG codec, H264 encoder12 |
| Security and package | |
| Security | Secure boot, XTS_AES encryption of flash and PSRAM; AES, SHA, RSA, ECC accelerators; HMAC, RSA_DS, ECDSA_DS; TRNG; key manager with SRAM-PUF HUK1 |
| Package | QFN104 (10×10 mm)1 |
| Supply | 3.0–3.6 V main supplies (VDD_LDO, VDD_DCDCC, VDD_ANA, VDD_LP); separate rails: core VDD_HP 0.99–1.3 V, PSRAM 1.65–1.95 V, MIPI 2.25–2.75 V, USB PHY 2.97–3.63 V, IO banks 1.65–3.6 V1 |
Variants
| Part number | Flash | PSRAM | Temperature | |
|---|---|---|---|---|
ESP32-P4NRW16X | — | 16 MB (OPI/HPI), 1.8 V | –40…85 °C | 1 |
ESP32-P4NRW32X | — | 32 MB (OPI/HPI), 1.8 V | –40…85 °C | 1 |
Pitfalls
The P4 has no Wi-Fi, Bluetooth or 802.15.4. ESP-IDF marks it as a wireless host: its Wi-Fi menu then offers a 'Host WiFi' option with a separate Wi-Fi controller target instead of native Wi-Fi.2
In ESP-IDF v5.5.5, support for revisions below 3.0 and from 3.0 up is mutually exclusive, and the default minimum revision is v3.1: a default build refuses to boot on older chips. The datasheet v0.7 covers v3.x and is still preliminary.5
Every P4 needs an external flash chip on the dedicated FLASH_* pins. VDDO_FLASH outputs 3.3 V by default; burning EFUSE_0PXA_TIEH_SEL_0 switches it to 1.8 V, and an eFuse bit cannot be reverted.1
Besides 3.0–3.6 V supplies, the chip has a 0.99–1.3 V core domain (VDD_HP, with pins for an external DC/DC), 1.65–1.95 V for PSRAM, 2.25–2.75 V for the MIPI PHY and 2.97–3.63 V for the USB PHY. The electrical values are marked preliminary.1
GPIO37/GPIO38 are both the UART0 TX/RX pins and boot strapping pins; GPIO34–GPIO38 have no pull except a weak pull-up on GPIO35, and GPIO34 has no internal pulls at all.1
USB OTG download boot works only through the High-Speed OTG (at full speed); the Full-Speed OTG does not support device firmware upgrade. USB Serial/JTAG download is also available.1
Where the sources disagree
- Number of full-speed USB PHYs. The datasheet lists two integrated full-speed transceivers (GPIO24/25 and GPIO26/27), while soc_caps.h v5.5.5 defines one FS/LS PHY. Not resolved. No spec value depends on it.12
Boards with the ESP32-P4
No board with this chip in the reference yet.
Sources
Each number on this page links here. Open “What it confirms” to see the exact quote behind every value. Checked 2026-11-28.
- ESP32-P4 Series Datasheet Pre-release v0.7 (preliminary; covers chip revision v3.x) primary
What it confirms (49)
- ESP32-P4: Architecture “RV32IMAFC ISA (instruction set architecture) … Custom AI and DSP extension (XespV) … Zc extensions (Zcb, Zcmp, and Zcmt) … Zb extensions”
- ESP32-P4: HP cores “32-bit RISC-V dual-core processor up to 400 MHz for HP system”
- ESP32-P4: Max clock “32-bit RISC-V dual-core processor up to 400 MHz for HP system”
- ESP32-P4: FPU “RV32IMAFC ISA (instruction set architecture)”
- ESP32-P4: Low-power core “32-bit RISC-V single-core processor up to 40 MHz for LP system … Two-stage pipeline that supports a clock frequency of up to 40 MHz … RV32IMAC ISA (instruction set architecture)”
- ESP32-P4: SRAM “768 KB of HP L2MEM: 200 MHz, for HP CPU data and instructions … 8 KB of SPM (Scratchpad Memory): 400 MHz, for HP CPU fast access”
- ESP32-P4: ROM “128 KB of HP ROM: 200 MHz, for HP CPU booting and core functions … 16 KB of LP ROM: 40 MHz, for LP CPU booting and core functions”
- ESP32-P4: RTC / LP SRAM “32 KB of LP SRAM: 40 MHz, for LP CPU data and instructions”
- ESP32-P4: Flash in package “ESP32-P4 requires off-package flash to store application firmware and data.”
- ESP32-P4: PSRAM in package “16 MB or 32 MB PSRAM in the chip’s package … Data bus width: 16 bits … Maximum clock frequency: 250 MHz”
- ESP32-P4: GPIO “55 programmable GPIOs … including 16 low-power (LP) GPIO pins and 39 high-performance (HP) GPIO pins”
- ESP32-P4: ADC “ESP32-P4 integrates two 12-bit successive approximation ADCs (SAR ADCs) for measuring analog signals from up to 14 pins.”
- ESP32-P4: Touch “Detection of 14 capacitive touch pins”
- ESP32-P4: UART “ESP32-P4 has six UART controllers, including five UARTs in the HP system and one low-power (LP) UART.”
- ESP32-P4: I²C “ESP32-P4 has three I2C controllers: two in the main system and one in the low-power system. … ESP32-P4 includes one I3C master interface.”
- ESP32-P4: I²S “ESP32-P4 has three built-in I2S interfaces … ESP32-P4 has a built-in LP I2S interface”
- ESP32-P4: SPI “General Purpose SPI2 (GP-SPI2) … General Purpose SPI3 (GP-SPI3) … Low-Power SPI (LP-SPI) … 8-bit Octal SPI mode (available only when GP-SPI2 works as a master)”
- ESP32-P4: LED PWM “Eight independent PWM generators (i.e., eight channels) … Maximum PWM duty cycle resolution: 20 bits … Four independent timers that support fractional division”
- ESP32-P4: RMT “TX channels 0–3 … RX channels 4–7”
- ESP32-P4: MCPWM “ESP32-P4 integrates two MCPWMs … three PWM timers, three PWM operators, a dedicated capture submodule”
- ESP32-P4: TWAI (CAN) “ESP32-P4 contains three TWAI controllers. … Compatibility with ISO 11898-1 protocol (CAN Specification 2.0)”
- ESP32-P4: Pulse counter “Four independent pulse counters (units) that count from 1 to 65535 … Each unit consists of two independent channels sharing one pulse counter”
- ESP32-P4: USB OTG “The interface supports USB 2.0 High-Speed mode (480 Mbit/s) … with an integrated transceiver … USB 2.0 Full-Speed OTG”
- ESP32-P4: USB Serial/JTAG “USB 2.0 full speed compliant, capable of up to 12 Mbit/s transfer speed … By default, the pins are multiplexed with GPIO24–GPIO25.”
- ESP32-P4: Ethernet MAC “Data rates of 10/100 Mbit/s through an external PHY interface … IEEE 1588-2008 standard for precise networked clock synchronization … MII or RMII interface (only one can be used at a time)”
- ESP32-P4: SD / SDIO “ESP32-P4 has an SD/MMC Host Controller. … Two external cards … Secure Digital I/O (SDIO 3.0) … 1-bit, 4-bit, and 8-bit modes”
- ESP32-P4: LCD / camera “ESP32-P4 includes one MIPI CSI interface … ESP32-P4 features a MIPI DSI interface … 2-lane x 1.5 Gbps … 8/16/24-bit parallel output modes … RGB, MOTO6800, and I8080 LCD formats … External camera (DVP image sensor) interface:”
- ESP32-P4: Temperature sensor “ESP32-P4 provides a temperature sensor for real-time monitoring of temperature changes within the chip.”
- ESP32-P4: 400 MHz dual-core RISC-V with FPU and AI/DSP extensions “Five-stage pipeline that supports clock frequency of up to 400 MHz … RV32IMAFC ISA (instruction set architecture) … 128-bit vector operations”
- ESP32-P4: 16 or 32 MB PSRAM in the package “ESP32-P4 includes sixteen-line PSRAM with the operation voltage of 1.8 V. … 16 × 2 × 250 MHz = 8 Gbit/s.”
- ESP32-P4: Camera and display pipeline “ESP32-P4 contains a baseline H264 encoder … maximum encoding performance of 1080p@30fps … Image Signal Processor (ISP) … Pixel-Processing Accelerator (PPA) … JPEG Codec”
- ESP32-P4: USB 2.0 High-Speed and Ethernet “Integrated UTMI High-Speed transceiver … As a host and a device in High-Speed mode and Full-Speed mode … Data rates of 10/100 Mbit/s through an external PHY interface”
- ESP32-P4: LP RISC-V core for Deep-sleep work “The LP CPU and LP memory remain powered on in Deep-sleep mode. … to access LP IO, LP peripherals, and real-time timers in Deep-sleep mode.”
- ESP32-P4: Strapping pins “GPIO34, GPIO35, GPIO36, GPIO37, GPIO38 : Strapping pins. … Strapping pin: GPIO35, GPIO36, GPIO37 and GPIO38 … Strapping pin: GPIO34 … ROM message printing - Strapping pin: GPIO36”
- ESP32-P4: USB pins “52 GPIO24 USB1P1_N0 … 53 GPIO25 USB1P1_P0 … 55 GPIO26 USB1P1_N1 … 56 GPIO27 USB1P1_P1 … By default, the pins are multiplexed with GPIO26–GPIO27. … GPIO24, GPIO25 : USB Serial/JTAG interface.”
- ESP32-P4: JTAG pins “GPIO2 MTCK … GPIO3 MTDI … GPIO4 MTMS … GPIO5 MTDO … GPIO2, GPIO3, GPIO4, GPIO5 : JTAG interface.”
- ESP32-P4: UART0 pins “GPIO37 UART0_TXD_PAD … GPIO38 UART0_RXD_PAD … GPIO37, GPIO38 : UART0 interface.”
- ESP32-P4: 32 kHz XTAL pins “1 GPIO1 XTAL_32K_P … 104 GPIO0 XTAL_32K_N”
- ESP32-P4: External memory “ESP32-P4 supports up to 64 MB flash, which can be connected through SPI, Dual SPI, and Quad SPI/QPI. … The maximum clock frequency is 120 MHz. … PSRAM is not pinned out”
- ESP32-P4: Security “Secure boot … External Memory Encryption and Decryption (XTS_AES) … ECDSA Digital Signature Peripheral (ECDSA_DS) … HUK generation based on SRAM PUF … Supports hardware XTS-AES encryption/decryption, protecting programs and data stored in PSRAM”
- ESP32-P4: Package “QFN104 (10×10 mm) Package”
- ESP32-P4: Supply “VDD_LDO, VDD_DCDCC, VDD_ANA, Recommended input voltage 3.0 3.3 3.6 V … Recommended input voltage 0.99 1.1 1.3 V … VDD_PSRAM_0, VDD_PSRAM_1 Recommended input voltage 1.65 1.8 1.95 V … VDD_MIPI_DPHY Recommended input voltage 2.25 2.5 2.75 V … VDD_USBPHY Recommended input voltage 2.97 3.3 3.63 V … VDD_IO_0, VDD_FLASHIO, VDD_IO_4, Recommended input voltage 1.65 1.8 3.6 V”
- ESP32-P4: variant ESP32-P4NRW16X “ESP32-P4NRW16X 16 MB (OPI/HPI)4 –40 ∼ 85 1.8 V v3.x”
- ESP32-P4: variant ESP32-P4NRW32X “ESP32-P4NRW32X 32 MB (OPI/HPI)4 –40 ∼ 85 1.8 V v3.x”
- ESP32-P4: Flash is off-package, on dedicated pins “ESP32-P4 requires off-package flash to store application firmware and data. … ESP32-P4 supplies power to flash via VDDO_FLASH, which outputs 3.3 V by default. After burning EFUSE_0PXA_TIEH_SEL_0, the output changes to 1.8 V. … once an eFuse bit is programmed to 1, it can never be reverted to 0”
- ESP32-P4: Several supply rails, not one 3.3 V “Recommended input voltage 0.99 1.1 1.3 V … Feedback pin of power supply for external DC/DC … VDD_PSRAM_0, VDD_PSRAM_1 Recommended input voltage 1.65 1.8 1.95 V … VDD_MIPI_DPHY Recommended input voltage 2.25 2.5 2.75 V … VDD_USBPHY Recommended input voltage 2.97 3.3 3.63 V … The values presented in this section are preliminary and may change with the final release of this datasheet.”
- ESP32-P4: UART0 pins are strapping pins “GPIO37, GPIO38 : UART0 interface. … GPIO34, GPIO35, GPIO36, GPIO37, GPIO38 : Strapping pins. … GPIO35 Weak pull-up 1 … GPIO38 Floating … This pin does not have any internal pull resistors”
- ESP32-P4: Only the High-Speed OTG can flash over USB OTG “only the USB 2.0 High-Speed OTG can be used for flashing at Full-Speed mode; the USB 2.0 Full-Speed OTG does not support device firmware upgrade … USB-Serial-JTAG Download Boot”
- ESP32-P4: discrepancy (Number of full-speed USB PHYs) “Two integrated full-speed transceivers … Choosing from two full-speed integrated transceivers GPIO24/GPIO25 and GPIO26/GPIO27”
- ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/soc_caps.h primary
What it confirms (24)
- ESP32-P4: HP cores “#define SOC_CPU_CORES_NUM (2U)”
- ESP32-P4: FPU “#define SOC_CPU_HAS_FPU 1 … Single-precision FPU and AI extensions”
- ESP32-P4: Low-power core “#define SOC_LP_CORE_SUPPORTED 1”
- ESP32-P4: PSRAM in package “#define SOC_SPIRAM_SUPPORTED 1”
- ESP32-P4: GPIO “#define SOC_GPIO_PIN_COUNT 55”
- ESP32-P4: ADC “#define SOC_ADC_PERIPH_NUM (2) … #define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) ((PERIPH_NUM==0)? 8: 6)”
- ESP32-P4: Touch “#define SOC_TOUCH_SENSOR_NUM (14)”
- ESP32-P4: UART “#define SOC_UART_HP_NUM (5) … #define SOC_UART_LP_NUM (1U)”
- ESP32-P4: I²C “#define SOC_I2C_NUM (3U) // I2C_NUM = HP_I2C + LP_I2C”
- ESP32-P4: I²S “#define SOC_I2S_NUM (3U) … #define SOC_LP_I2S_NUM (1U)”
- ESP32-P4: LED PWM “#define SOC_LEDC_CHANNEL_NUM (8)”
- ESP32-P4: RMT “#define SOC_RMT_TX_CANDIDATES_PER_GROUP 4 … #define SOC_RMT_RX_CANDIDATES_PER_GROUP 4”
- ESP32-P4: MCPWM “#define SOC_MCPWM_GROUPS (2U)”
- ESP32-P4: TWAI (CAN) “#define SOC_TWAI_CONTROLLER_NUM 3”
- ESP32-P4: Pulse counter “#define SOC_PCNT_UNITS_PER_GROUP 4”
- ESP32-P4: USB OTG “#define SOC_USB_OTG_PERIPH_NUM (2U)”
- ESP32-P4: USB Serial/JTAG “#define SOC_USB_SERIAL_JTAG_SUPPORTED 1”
- ESP32-P4: Ethernet MAC “#define SOC_EMAC_SUPPORTED 1”
- ESP32-P4: SD / SDIO “#define SOC_SDMMC_NUM_SLOTS 2”
- ESP32-P4: LCD / camera “#define SOC_MIPI_CSI_SUPPORTED 1 … #define SOC_MIPI_DSI_SUPPORTED 1 … #define SOC_LCDCAM_SUPPORTED 1”
- ESP32-P4: Temperature sensor “#define SOC_TEMP_SENSOR_SUPPORTED 1”
- ESP32-P4: valid GPIOs “#define SOC_GPIO_VALID_GPIO_MASK (0x007FFFFFFFFFFFFF) … #define SOC_GPIO_PIN_COUNT 55”
- ESP32-P4: No radio: Wi-Fi and Bluetooth need a second chip “#define SOC_WIRELESS_HOST_SUPPORTED 1 … default y if SOC_WIFI_SUPPORTED … config ESP_HOST_WIFI_ENABLED … bool "Host WiFi Enable" … config ESP_WIFI_CONTROLLER_TARGET”
- ESP32-P4: discrepancy (Number of full-speed USB PHYs) “#define SOC_USB_FSLS_PHY_NUM (1U)”
- ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/adc_channel.h primary
What it confirms (2)
- ESP32-P4: ADC “#define ADC1_CHANNEL_7_GPIO_NUM 23 … #define ADC2_CHANNEL_5_GPIO_NUM 54”
- ESP32-P4: ADC channel per GPIO “#define ADC1_GPIO16_CHANNEL 0 … #define ADC1_GPIO17_CHANNEL 1 … #define ADC1_GPIO18_CHANNEL 2 … …”
- ESP-IDF v5.5.5: components/soc/esp32p4/include/soc/touch_sensor_channel.h primary
What it confirms (1)
- ESP32-P4: touch channel per GPIO “#define TOUCH_PAD_GPIO2_CHANNEL 1 … #define TOUCH_PAD_GPIO3_CHANNEL 2 … #define TOUCH_PAD_GPIO4_CHANNEL 3 … …”
- ESP-IDF v5.5.5: components/esp_hw_support/port/esp32p4/Kconfig.hw_support (chip revision options) primary
What it confirms (1)
- ESP32-P4: Chip revision v1.x and v3.x need different builds “Support of ESP32-P4 rev. <3.0 and >=3.0 is mutually exclusive … default ESP32P4_REV_MIN_301 … reject to boot if the chip revision fails the check … have huge hardware difference … For differences between chip revision v3.x and previous ESP32-P4 chip revisions”