Esp Steps

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

https://docs.espressif.

com/projects/esp-idf/en/latest/get-started/linux-setup-
scratch.html

sudo apt-get install git wget flex bison gperf python python-pip python-setuptools
python-serial python-click python-cryptography python-future python-pyparsing
python-pyelftools cmake ninja-build ccache

Download crosstool-NG and build it:

git clone https://github.com/espressif/crosstool-NG.git


cd crosstool-NG
git checkout esp-2019r2
git submodule update --init
./bootstrap && ./configure --enable-local && make

Build the toolchain:

./ct-ng xtensa-esp32-elf
./ct-ng build
chmod -R u+w builds/xtensa-esp32-elf

//set env variable

https://docs.espressif.com/projects/esp-idf/en/latest/get-started/linux-setup-
scratch.html

mkdir -p ~/esp
cd ~/esp
clone from https://docs.espressif.com/projects/esp-idf/en/latest/get-started/linux-
setup-scratch.html

git submodule update --init --recursive

---------------------------------------------------------------------

Download crosstool-NG and build it:

1. clone esp-idf repo -->https://github.com/espressif/esp-idf


change branch to V4
chech cmake version need to be greater or equal than 3.5
if lower just remove it

----------------------------------sudo apt remove cmake


CMake version 3.5 or newer is required for use with ESP-IDF. Older Linux
distributions may require updating, enabling of a “backports” repository, or
installing of a “cmake3” package rather than “cmake”.

Check your current version with cmake --version


Uninstall it with sudo apt remove cmake
Visit https://cmake.org/download/ and download the latest binaries
In my case cmake-3.6.2-Linux-x86_64.sh is sufficient copy the binary to
/opt/
chmod +x /opt/cmake-3.*your_version*.sh (chmod makes the script executable)

sudo bash /opt/cmake-3.*your_version.sh* (you'll need to press y twice)

The script installs to /opt/cmake-3.*your_version* so in order to get the cmake


command, make a symbolic link:

sudo ln -s /opt/cmake-3.*your_version*/bin/* /usr/local/bin

Test your results with cmake --version

https://cmake.org/install/
./bootstrap
make
make install

------------------------------------------------------------------------

You might also like