🛠 First Startup of the Metro ESP32-P4 Hydra

Adafruit Metro ESP32-P4 Hydra · intermediaire · Guide étape par étape pour alimenter, flasher et vérifier le fonctionnement de base de la carte Adafruit Metro ESP32-P4 Hydra.

Objectives

This tutorial guides you through the initial setup of the Adafruit Metro ESP32-P4 Hydra. You will learn to install the necessary tools, flash the TinyUF2 firmware, and run your first program to validate serial communication. This step is crucial to leverage the high performance of the ESP32-P4 SoC.

Required Hardware

Steps

  1. Environment Setup: Open Arduino IDE. Go to File > Preferences and add the Adafruit board manager URL: https://adafruit.github.io/arduino-board-index/package_adafruit_index.json. Restart the IDE.
  2. Add Board: In Tools > Board > Boards Manager, search for "Adafruit ESP32 Boards" and install the latest version.
  3. Bootloader Mode: Press and hold the BOOT button on the board. While holding the button, plug the USB-C cable into the computer. Release the BOOT button only after 2 seconds. The board is now in TinyUF2 mode.
  4. Flash Firmware: A "TINYUF2" storage drive appears on your computer. Download the .uf2 file suitable for the Metro ESP32-P4 Hydra from the Adafruit website. Copy it to the TINYUF2 drive. The board restarts automatically once the transfer is complete.
  5. IDE Configuration: In the Tools menu, select Adafruit Metro ESP32-P4 Hydra as the board type. Select the corresponding serial port (often COMx on Windows or /dev/tty.usbmodemX on Mac/Linux).
  6. Test Program: Open the Blink example via File > Examples > Basics > Blink. Modify the loop() function to use the onboard LED if needed, or add Serial.begin(115200) in setup() and Serial.println("Hello Hydra!") in loop().
  7. Upload: Click the "Upload" button. Wait for compilation and writing to the board to finish.

Verification

Open the Arduino IDE Serial Monitor (magnifying glass icon top right). Set the speed to 115200 bauds. You should see the message "Hello Hydra!" displayed in a loop. If the LED also blinks, the board is correctly powered and programmed. If it fails, ensure the USB cable is a data cable and the selected port is correct.

Going Further

Once the basics are validated, explore advanced interfaces. Try connecting a MIPI DSI screen via one of the 22-pin connectors to display a graphical interface, or use the USB-A host port to plug in a USB drive and read files, leveraging the power of the dual-core RISC-V processor.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials