WT9932P4-TINY Beginner's Guide

  • WT9932P4-TINY
  • esp32p4
Update history
Date Version Author Update content
2025-09-10 1.0.0 Kirto Initial document release

1. Setting Up ESP32-P4 Development Environment

This tutorial mainly introduces how to compile the IDF environment using WSL2 in a Windows environment. Its main advantages are as follows:

  • Compilation in Ubuntu environment is more efficient than in Windows environment
  • WSL2 can use Windows resources more reasonably compared to virtual machines
  • The environment is interoperable with Windows, making file transfer more convenient than with virtual machines

1.1 Preparation

  • An ESP32-P4 development board
  • USB cable (A to Type-C)
  • Computer (Windows, Linux, or macOS)

1.2 Installing WSL2

  1. Open Command Prompt or PowerShell as administrator.

  2. Enter the following command:

wsl --install

⚠ Note: After installation, you need to restart your computer for it to take effect.

  1. The system will automatically download and install the required components, and install the Ubuntu distribution by default.

  2. Install the usbipd tool for mounting Windows development board devices:WSL-USB-GUIDownload WSL-USB-x.x.x.msi and double-click to install.

Installing IDF

  1. Install the following software packages:
sudo apt-get update
sudo apt-get install git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
  1. Get ESP-IDF:
mkdir -p ~/esp
cd ~/esp
git clone -b v5.4.2 --recursive https://github.com/espressif/esp-idf.git
  1. Install the compilation toolchain:
cd ~/esp/esp-idf
export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets"
./install.sh
  1. Set environment variables:
    Add the following content to .bashrc and restart the terminal:
alias get_idf='. $HOME/esp/esp-idf/export.sh'
  1. Clone the example repository and enter the blink example:
git clone https://github.com/wireless-tag-com/WT9932P4-TINY
cd WT9932P4-TINY/blink/
  1. Activate the IDF environment:
git clone https://github.com/wireless-tag-com/WT9932P4-TINY
cd WT9932P4-TINY/blink/
  1. Set the IDF target:
idf.py set-target esp32p4
  1. Compile blink:
idf.py build
  1. Connect the WT9932P4-TINY's FUSB with a USB cable, open WSL-USB-GUI and mount it to WSL.

  2. Flash blink:

idf.py flash -p /dev/ttyACM0

⚠ Note: If you don't have permission, you need to authorize it using the command sudo chmod 666 /dev/ttyACM0

3. Expected Result

You will see the onboard LED blinking with white light.