WT9932P4-TINY Beginner's Guide
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
Open Command Prompt or PowerShell as administrator.
Enter the following command:
wsl --install
⚠ Note: After installation, you need to restart your computer for it to take effect.
The system will automatically download and install the required components, and install the Ubuntu distribution by default.
Install the usbipd tool for mounting Windows development board devices:WSL-USB-GUIDownload
WSL-USB-x.x.x.msiand double-click to install.
Installing IDF
- 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
- Get ESP-IDF:
mkdir -p ~/esp
cd ~/esp
git clone -b v5.4.2 --recursive https://github.com/espressif/esp-idf.git
- Install the compilation toolchain:
cd ~/esp/esp-idf
export IDF_GITHUB_ASSETS="dl.espressif.com/github_assets"
./install.sh
- Set environment variables:
Add the following content to .bashrc and restart the terminal:
alias get_idf='. $HOME/esp/esp-idf/export.sh'
2. Compiling LED Blink Example
- Clone the example repository and enter the blink example:
git clone https://github.com/wireless-tag-com/WT9932P4-TINY
cd WT9932P4-TINY/blink/
- Activate the IDF environment:
git clone https://github.com/wireless-tag-com/WT9932P4-TINY
cd WT9932P4-TINY/blink/
- Set the IDF target:
idf.py set-target esp32p4
- Compile blink:
idf.py build
Connect the WT9932P4-TINY's FUSB with a USB cable, open WSL-USB-GUI and mount it to WSL.
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.