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:
sudoyuminstallgccgitwgetmakencurses-develflexbisongperfpythonpyserialpython-
pyelftools
Ubuntu 和 Debian:
sudoapt-getinstallgccgitwgetmakelibncurses-devflexbisongperfpythonpython-pip
python-setuptoolspython-serialpython-cryptographypython-futurepython-pyparsingpython-
pyelftools
Arch:
sudopacman-S--neededgccgitmakencursesflexbisongperfpython2-pyserialpython2-
cryptographypython2-futurepython2-pyparsingpython2-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:
exportPATH="$HOME/esp/xtensa-esp32s2-elf/bin:$PATH"
Optionally, add the following to ~/.profile:
aliasget_esp32s2='exportPATH="$HOME/esp/xtensa-esp32s2-elf/bin:$PATH"'
3. Re-log in to validate .profile. Run the following to check PATH:
printenvPATH
Espressif Systems
/ 9 22
Sep. 2020