Skip to content

Instantly share code, notes, and snippets.

@mattes
Created September 29, 2018 05:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattes/ffdc5438f46d991f28a4abe72124acfd to your computer and use it in GitHub Desktop.
Save mattes/ffdc5438f46d991f28a4abe72124acfd to your computer and use it in GitHub Desktop.
ESP32 installation

I develop on a Macbook inside an Ubuntu VM.

Mac needs drivers: https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers

Then installation of toolchain and ESP32 looks like this:

# Install USB serial drivers
apt-get install linux-image-extra-virtual

# Install Serial Monitor
apt-get install picocom 

# Install Toolchain dependencies
apt-get install gcc git wget make libncurses-dev \
    flex bison gperf curl

# Install Toolchain's Python dependencies (OR use pyenv)
apt-get install python python-pip python-setuptools python-serial

# Don't ask for sudo when connecting to serial port
sudo usermod -a -G dialout $USER

# Install Toolchain
mkdir -p /usr/local/opt
cd /usr/local/opt
wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
tar -xzf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz

# Install ESP32 libs (ESP-IDF)
git clone --recursive https://github.com/espressif/esp-idf.git
pip install -r esp-idf/requirements.txt

# Set path in .bashrc or dotfiles
export PATH=$PATH:/usr/local/opt/esp/xtensa-esp32-elf/bin
export IDF_PATH=/usr/local/opt/esp-idf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment