Users Manual

3. Getting Started with ESP32-S2-MINI-1 &
ESP32-S2-MINI-1U
3.2.2. Standard Setup of Toolchain for Linux
Install Prerequisites
CentOS 7
sudo󰲧yum󰲧install󰲧gcc󰲧git󰲧wget󰲧make󰲧ncurses-devel󰲧flex󰲧bison󰲧gperf󰲧python󰲧pyserial󰲧python-
pyelftools
Ubuntu Debian
sudo󰲧apt-get󰲧install󰲧gcc󰲧git󰲧wget󰲧make󰲧libncurses-dev󰲧flex󰲧bison󰲧gperf󰲧python󰲧python-pip󰲧
python-setuptools󰲧python-serial󰲧python-cryptography󰲧python-future󰲧python-pyparsing󰲧python-
pyelftools
Arch
sudo󰲧pacman󰲧-S󰲧--needed󰲧gcc󰲧git󰲧make󰲧ncurses󰲧flex󰲧bison󰲧gperf󰲧python2-pyserial󰲧python2-
cryptography󰲧python2-future󰲧python2-pyparsing󰲧python2-pyelftools
Set up The Toolchain
64-bit Linux
https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-
dev-4-g3a626e-linux-amd64.tar.gz
32-bit Linux
https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-
dev-4-g3a626e-linux-i686.tar.gz
1. Unzip the file to ~/esp directory:
64-bit Linux
mkdir󰲧-p󰲧~/esp
cd󰲧~/esp
tar󰲧-xzf󰲧~/Downloads/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-amd64.tar.gz
32-bit Linux
mkdir󰲧-p󰲧~/esp
cd󰲧~/esp
tar󰲧-xzf󰲧~/Downloads/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-dev-4-g3a626e-linux-i686.tar.gz
2. The toolchain will be unzipped to ~/esp/xtensa-esp32s2-elf/ directory.
Add the following to ~/.profile:
export󰲧PATH="$HOME/esp/xtensa-esp32s2-elf/bin:$PATH"
Optionally, add the following to ~/.profile:
alias󰲧get_esp32s2='export󰲧PATH="$HOME/esp/xtensa-esp32s2-elf/bin:$PATH"'
3. Re-log in to validate .profile. Run the following to check PATH:
󰲧󰲧󰲧󰲧printenv󰲧PATH
Espressif Systems
/ 9 22
Sep. 2020