Standard Setup Of Toolchain For Mac Os - Espressif Systems ESP32-S2-MINI-1 User Manual

Table of Contents

Advertisement

$ printenv PATH
/home/user-name/esp/xtensa-esp32s2-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
某些 Linux 版本可能在烧写 ESP32-S2 时会出现 Failed to open port /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.
Backwards compatibility libraries are available in AUR for native and lib32 configurations:
https://aur.archlinux.org/packages/ncurses5-compat-libs/
https://aur.archlinux.org/packages/lib32-ncurses5-compat-libs/
Before installing these packages you might need to add the author's public key to your
keyring as described in the "Comments" section at the links above.
Alternatively, use crosstool-NG to compile a gdb that links against ncurses 6.

3.2.3. Standard Setup of Toolchain for Mac OS

Install pip:
sudo easy_install pip
Install Toolchain:
https://dl.espressif.com/dl/toolchains/preview/xtensa-esp32s2-elf-gcc8_2_0-esp32s2-
dev-4-g3a626e-macos.tar.gz
Unzip the file into ~/esp directory.
The toolchain will be unzipped into ~/esp/xtensa-esp32s2-elf/ path.
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"
Input get_esp32s2 to add the toolchain to PATH.
Espressif Systems
3. Getting Started with ESP32-S2-MINI-1 &
10 22
/
ESP32-S2-MINI-1U
Sep. 2020

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the ESP32-S2-MINI-1 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Esp32-s2-mini-1u

Table of Contents