Links:
https://idf.espressif.com/ https://www.espressif.com/en/support/documents/technical-documents - техническая документация https://www.espressif.com/en/support/documents/technical-documents?keys=&field_type_tid%5B%5D=842 https://github.com/espressif/esp-idf/tree/02c5f2db/examples - примеры проектов https://github.com/espressif/esp-idf/releases/tag/v5.4.1 https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32/esp32-devkitc/index.html https://docs.espressif.com/projects/esp-idf/en/v5.4.1/esp32/get-started/index.html https://www.espressif.com/en/support/download/sdks-demos https://docs.espressif.com/projects/esp-idf/en/v5.5/esp32s3/get-started/linux-macos-setup.html#get-started-linux-macos-first-steps https://www.espressif.com/en/sdks/esp-zephyr https://docs.zephyrproject.org/latest/boards/raspberrypi/rpi_4b/doc/index.html https://github.com/espressif/esp-bsp/tree/master/examples
0. install package:
Ubuntu and Debian: 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 CentOS 7 & 8: CentOS 7 is still supported but CentOS version 8 is recommended for a better user experience. sudo yum -y update && sudo yum install git wget flex bison gperf python3 cmake ninja-build ccache dfu-util libusbx Arch: sudo pacman -S --needed gcc git make flex bison gperf python cmake ninja ccache dfu-util libusb Installing Python 3: > Python 2.7.17 python3 --version
2. Скачаем ESP-IDF:
cd /opt sudo git clone -b v5.4.1 --recursive https://github.com/espressif/esp-idf.git
3. Set up the Tools:
Тут можно уже поставить под конкретную esp: cd /opt/esp-idf ./install.sh esp32 ./install.fish esp32,esp32s2 Или поставить все: cd /opt/esp-idf ./install.sh all
4. Настройка окружения и первый пример с hellow_world:
0. Создаем каталог ESP: mkdir ESP cd ESP 1. Активируем окружение: . /opt/esp-idf/export.sh 2. Пример hello_world: cp -r $IDF_PATH/examples/get-started/hello_world . cd ~/esp/hello_world idf.py set-target esp32 idf.py menuconfig
6. Сборка проекта:
idf.py build
7. Прошивка устройства / Flash onto the Device
idf.py -p PORT flash idf.py -p PORT flash monitor
8. Debug с прошивкой
idf.py -pmonitor