ESP IDF + MATTER guide For MacOS

コンテンツ
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install ninja
brew install cmake
brew install esptool
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git checkout v5.2.1; git submodule update --init --recursive;
./install.sh
cd ..
git clone --depth 1 https://github.com/espressif/esp-matter.git
cd esp-matter
git submodule update --init --depth 1
cd ./connectedhomeip/connectedhomeip
./scripts/checkout_submodules.py --platform esp32 darwin --shallow
cd ../..
./install.sh
cd ..
cd esp-idf; source ./export.sh; cd ..
cd esp-matter; source ./export.sh; cd ..
export IDF_CCACHE_ENABLE=1

If you facing following error…ERROR: /Users/xxx/.espressif/python_env/idf5.2_py3.12_env/bin/python doesn’t exist! Please run the install script or “idf_tools.py install-python-env” in order to create it.

Do:

要約する
The article provides a series of commands to set up the development environment for ESP32 devices using the ESP-IDF framework and ESP-Matter project. It includes installing necessary tools like Ninja, CMake, and esptool using Homebrew, cloning the ESP-IDF and ESP-Matter repositories, and setting up the environment variables. Additionally, it addresses a specific error related to the Python environment and provides a solution to resolve it by running the install script or 'idf_tools.py install-python-env' command.