This tutorial will show you how to compile the default factory firmware for the Tab5, which you can use as a base for secondary development.
v5.4.1
.
and the script in the . ./export.sh
command is required. This command is equivalent to source ./export.sh
.git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git checkout v5.4.1 # recommend
./install.sh
. ./export.sh
idf.py
commands rely on ESP-IDF. Before running any commands, activate the environment variables by sourcing export.sh
in your ESP-IDF directory. For details, see ESP-IDF – Getting Started for ESP32-P4 (Linux & macOS).esp-idf
directory.git clone https://github.com/m5stack/M5Tab5-UserDemo.git
M5Tab5-UserDemo
folder and fetch the dependent components using the provided Python script. Ensure you have a Python development environment installed on your PC before running this.cd M5Tab5-UserDemo
python ./fetch_repos.py
M5Tab5-UserDemo/platforms/tab5
directory, source the ESP-IDF export.sh
script to activate the environment variables. The commands below assume M5Tab5-UserDemo
and esp-idf
are siblings; adjust paths if your layout differs.cd platforms/tab5
. ../../../esp-idf/export.sh
Connect the Tab5 to your computer via USB. Press and hold the Reset button until the green LED blinks rapidly, then release to enter download mode. Once in download mode, run the following command to compile and flash the firmware:
idf.py flash
After flashing completes, tap different areas of the screen to test each functional module.