User's Manual
sudoapt-getinstallgccgitwgetmakelibncurses-devflexbisongperfpythonpython-
pippython-setuptoolspython-serialpython-cryptographypython-futurepython-pyparsing
python-pyelftools
Arch:
sudopacman-S--neededgccgitmakencursesflexbisongperfpython2-pyserialpython2-
cryptographypython2-futurepython2-pyparsingpython2-pyelftools
Set up The Toolchain
64-bit Linux:%
https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-esp32-2019r1-8.2.0.tar.gz
32-bit Linux:%
https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-esp32-2019r1-8.2.0.tar.gz
1. Unzip the file to ~/esp directory:
64-bit Linux:
mkdir-p~/esp
cd~/esp
tar-xzf~/Downloads/xtensa-esp32-elf-linux64-esp32-2019r1-8.2.0.tar.gz
32-bit Linux:
mkdir-p~/esp
cd~/esp
tar-xzf~/Downloads/xtensa-esp32-elf-linux32-esp32-2019r1-8.2.0.tar.gz
2. The toolchain will be unzipped to ~/esp/xtensa-esp32-elf/ directory.%
Add the following to ~/.profile:
exportPATH="$HOME/esp/xtensa-esp32-elf/bin:$PATH"
Optionally, add the following to ~/.profile:
aliasget_esp32='exportPATH="$HOME/esp/xtensa-esp32-elf/bin:$PATH"'
3. Re-log in to validate .profile. Run the following to check PATH:
printenvPATH
$printenvPATH
/home/user-name/esp/xtensa-esp32-elf/bin:/home/user-name/bin:/home/user-
name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
games:/usr/local/games:/snap/bin
Permission issues /dev/ttyUSB0
With some Linux distributions you may get the Failed to open port /dev/ttyUSB0 error
message when flashing the ESP32. This can be solved by adding the current user to
the dialout group.
Arch Linux Users
To run the precompiled gdb (xtensa-esp32-elf-gdb) in Arch Linux requires ncurses 5,
but Arch uses ncurses 6.