Skip to content

Developers_esp idf環境構築

Ko-ichiro Sugiyama edited this page Apr 9, 2023 · 1 revision

ESP-IDF 環境の構築

本ドキュメントでは Linux (Debian) 環境において ESP32 マイコンの公式開発環境である ESP-IDF のインストール方法を述べる. 本ライブラリは ESP-IDF の 4.2 系 (2023/04/08 現在の最新は v4.2.4) に対応している.

公式ドキュメント: https://docs.espressif.com/projects/esp-idf/en/latest/get-started/linux-setup.html

$ sudo apt-get install git wget flex bison gperf python3 python3-pip python3-setuptools python3-serial python3-click python3-cryptography python3-future python3-pyparsing python3-pyelftools python3-libusb1 cmake ninja-build ccache
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 10

$ mkdir ~/esp
$ cd ~/esp
$ git clone --recursive -b v4.2.4 https://github.com/espressif/esp-idf.git
$ cd esp-idf
$ ./install.sh

$ . ./export.sh 

ESP-IDF を使う前にいちいち export.sh を実行するのは面倒なので, ~/.bashrc に追加しておくとよいだろう.

$ echo ". $HOME/esp/esp-idf/export.sh" >> ~/.bashrc
Clone this wiki locally