This is an old revision of the document!
ESP-IDF
EPS32 development environment.
Previously tested on Raspberry Pi 3.
Recently tested on Raspberry Pi 400 (aarch64 / python 3.9.2).
This a truly awful development environment.
Setup
Tools
apt-get update apt-get dist-upgrade apt-get install git wget flex bison gperf python3 python3-venv python3-pip python3-setuptools python3-pyparsing ninja-build ccache libffi-dev libssl-dev dfu-util
Python
update-alternatives --remove-all python update-alternatives --install /usr/bin/python python /usr/bin/python3 2 update-alternatives --install /usr/bin/python python /usr/bin/python2 1 update-alternatives --config python python -V Python 3.7.3
Fetch
cd /opt git clone --recursive https://github.com/espressif/esp-idf.git
Install
setenv IDF_PATH "/opt/esp-idf" setenv IDF_TOOLS_PATH "/opt/esp-idf" cd /opt/esp-idf sh install.sh
Get path
sh export.sh
Set path
setenv PATH "${PATH}:/opt/esp-idf/components/espcoredump:/opt/esp-idf/components/partition_table:/opt/esp-idf/components/app_update:/opt/esp-idf/tools/xtensa-esp-elf-gdb/12.1_20221002/xtensa-esp-elf-gdb/bin:/opt/esp-idf/tools/riscv32-esp-elf-gdb/12.1_20221002/riscv32-esp-elf-gdb/bin:/opt/esp-idf/tools/xtensa-esp32-elf/esp-12.2.0_20230208/xtensa-esp32-elf/bin:/opt/esp-idf/tools/xtensa-esp32s2-elf/esp-12.2.0_20230208/xtensa-esp32s2-elf/bin:/opt/esp-idf/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin:/opt/esp-idf/tools/riscv32-esp-elf/esp-12.2.0_20230208/riscv32-esp-elf/bin:/opt/esp-idf/tools/esp32ulp-elf/2.35_20220830/esp32ulp-elf/bin:/opt/esp-idf/tools/openocd-esp32/v0.12.0-esp32-20230419/openocd-esp32/bin:/opt/esp-idf/python_env/idf5.2_py3.9_env/bin:/opt/esp-idf/tools"