This is an old revision of the document!


Table of Contents

ESP-IDF

EPS32 development environment.

Previously tested on Raspberry Pi 3 (armv7l / python 3.7.3)

Recently tested on Raspberry Pi 400 (aarch64 / python 3.9.2).

ESP-IDF is truly awful.

Setup

Install various dependencies.

apt update
apt full-upgrade
apt install build-essential cmake git wget flex bison gperf python3 python3-venv python3-pip python3-setuptools python3-pyparsing ninja-build ccache libffi-dev libssl-dev dfu-util

Debian bullseye has python 3 but on buster python 3 will need to be the default version.

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

User

Create a user for the home of the dev kit.

useradd -d /home/esp -m esp

Append paths to .profile

vi ~esp/.profile
IDF_PATH="$HOME/esp-idf"
IDF_TOOLS_PATH="$HOME/esp-idf"

Install

Clone dev kit into home dir.

/bin/su - esp
git clone --recursive https://github.com/espressif/esp-idf

Run installation script.

cd esp-idf
sh install.sh

Finalise installation

. ./export.sh

Test

Enter the blinky test dir

cd ~/esp-idf/examples/get-started/blink

Build

idf.py build

Expect this to take some time.

Resources

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies