ESP32-P4

[中文]

Note

This document is automatically translated using AI. Please excuse any detailed errors. The official English version is still in progress.

ESP32-P4 Chip Startup Conditions

The operating voltage range of the ESP32-P4 chip is 3.0 V ~ 3.6 V; when using a single power supply, it is recommended that the power supply voltage for the ESP32-P4 series chip be 3.3 V, and the basic supply current for the ESP32-P4 chip should be at least 380 mA (including Flash and PSRAM). For more power design instructions, see: Key Points of ESP32-P4 Power Design. The CHIP_PU (EN) pin of ESP32-P4 is the chip’s boot pin. When CHIP_PU (EN) is at a high level, the chip is enabled; when it is at a low level, the chip is turned off. Note: The CHIP_PU pin should not be left floating. When ESP32-P4 is powered by a 3.3V system power supply, the CHIP_PU (EN) pin must be at a high level.

Hardware Wiring

To perform firmware downloads using the ESP32-P4 chip, users need to design their own PCB board and reserve test points for firmware download. Then, wiring should be done according to the requirements for the chip to enter download mode.

The ESP32-P4 supports two firmware download methods: UART0 and USB. Different boot defaults require different voltage levels for the Straping pin, as detailed below:

  • When downloading firmware based on ESP32-P4 via UART0, users need to prepare:

    • 3.3V Power Supply

    • Serial debugging tool

    • Dupont wire

    When using the UART0 pin to download firmware, the following wiring conditions need to be met to satisfy the hardware requirements for chip power supply, power-on startup, and entering download mode.

    ESP32-P4

    3.3V External Power Supply

    Serial debugging tool

    3V3

    VDD

    GND

    GND

    GND

    EN

    VDD

    GPIO35 (pull-down, default is weak pull-up)

    GND

    GPIO36 (pull-up, default is floating)

    VDD

    TXD0(GPIO37)

    RXD

    RXD0(GPIO38)

    TXD

  • When downloading firmware based on ESP32-P4 via USB, users need to prepare:

    • 3.3V Power Supply

    • USB cable

    • Dupont wire

    When using the USB pin to download firmware, the following wiring conditions need to be met to satisfy the hardware requirements for chip power supply, power-on startup, and entering download mode.

    ESP32-P4

    3.3V External Power Supply

    USB cable

    3V3

    VDD

    GND

    GND

    GND

    EN

    VDD

    GPIO35 (pull-down, default is weak pull-up)

    GND

    GPIO36 (pull-up, default is floating)

    VDD

    GPIO24(GPIO26)

    USB_D- (White)

    GPIO25(GPIO27)

    USB_D+ (Green)

  • When testing with the ESP32-P4 Development Board, you can directly use a USB Type-C cable to connect to the USB-UART interface on the development board for firmware download. If you are using the USB interface to download the firmware for the first time, you need to manually pull down the GPIO35 pin, that is, hold down the Boot button and then power on, to manually enter the download mode.

Chip Power-On Startup Log

After powering on the ESP32-P4 chip, you can use the PC-side serial debugging software to view the UART0 serial output when the chip is powered on, to confirm whether the chip has entered download mode. If the chip enters download mode upon power-up, UART0 will print the following log:

ESP-ROM:esp32p4-eco1-20240205
Build:Feb  5 2024
rst:0x1 (POWERON),boot:0x107 (DOWNLOAD(USB/UART0/SPI))
waiting for download

Note

After powering on the ESP32-P4 chip, if you do not see the log printing, you can trigger the log printing by pulling down and then pulling up the CHIP_PU (EN) pin for a hardware reset restart.

In terms of software, Espressif provides a PC-based Flash download tool, which can directly download firmware (.bin) into Flash. For usage instructions, refer to the Flash Download Tool User Guide.

After the firmware download is complete, if you want to run the burned firmware, you can pull up GPIO35 (default is high level) based on the aforementioned hardware wiring, and then pull down and pull up the CHIP_PU (EN) pin for hardware reset and restart, allowing the chip to re-enter the Flash boot mode. Finally, use the serial debugging software to view the UART0 log printout to check the firmware running status.