This guide will walk you to the process of installing ESP-IDF toolchain using Developer mode Subsystem for Linux (Ubuntu 14) and some PowerShell scripts.
!!Please note that this is still a beta and some problems may arise.!!
##Step 1: Install bash
on windows
Some good guides for this can be found here
and here. Just follow the steps there and
you sould be ready to go.
Please refer to the original ESP-IDF Linux documentation for more details
This guide assumes that you have your project directory is D:/esp32/project
, your esp-idf will be installed in D:/esp32/esp-idf
and toolchain will be installed in D:/esp32/xtensa-esp32-elf
If you change this please adjust accordingly.
You can do this by running the Bash on Ubuntu on Windows
application or by typing bash
in a cmd window.
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
Again refer to the documentation for newer binaries.
https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
tar -xvf xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
mv xtensa-esp32-elf /mnt/d/esp32/
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git submodule update --init
mv esp-idf/ /mnt/d/esp32/
export IDF_PATH=/mnt/d/esp32/esp-idf
export PATH=/mnt/d/esp32/xtensa-esp32-elf/bin:$PATH
Also add this to ~/.profile
file.
nano ~/.profile
paste at the end and save file.
cd /mnt/d/esp32
git clone https://github.com/espressif/esp-idf-template project
cd /mnt/d/esp32
git clone https://github.com/Vlad-Iliescu/esp-idf-pstool.git
cd esp-idf-pstool/
cp config.ini.dist config.ini
Now edit config.ini
in accordance to your setup
I use python 3.6, but it should work with any python installation. After istalll make sure you add python to path.
pip install pyserial
Either by running Windows PowerShell
app or by typing powershell in a cmd window.
cd .\esp32\esp-idf-pstool
. .\make.ps1
Type ESP32-Make
for a list of known commands
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force;