Code Monkey home page Code Monkey logo

esp-idf-pstool's Introduction

ESP32 Windows 10 toolchain using developer mode bash

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.

Step 2: Install ESP-IDF environment

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.

2.1 Run bash console

You can do this by running the Bash on Ubuntu on Windows application or by typing bash in a cmd window.

2.2 Install packages

sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial

2.3 Download binary toolchain

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

2.4 Extract

tar -xvf xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
mv xtensa-esp32-elf /mnt/d/esp32/

2.5 Clone the esp-idf

git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf
git submodule update --init
mv esp-idf/ /mnt/d/esp32/

2.6 Export paths

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.

Step 3: Setup project

3.1 Clone template

cd /mnt/d/esp32
git clone https://github.com/espressif/esp-idf-template project

3.2 Clone tool

cd /mnt/d/esp32
git clone https://github.com/Vlad-Iliescu/esp-idf-pstool.git
cd esp-idf-pstool/

3.3 Add config

cp config.ini.dist config.ini

Now edit config.ini in accordance to your setup

Step 4: Import and use the PowerShell functions

4.1 Install python

I use python 3.6, but it should work with any python installation. After istalll make sure you add python to path.

4.2 Install pyserial

pip install pyserial

4.3 Start PowerShell

Either by running Windows PowerShell app or by typing powershell in a cmd window.

4.4 Navigate to project tool

cd .\esp32\esp-idf-pstool

4.5 Import

. .\make.ps1

Step 5: Use ESP32-Make

Type ESP32-Make for a list of known commands

TODOs:

  1. Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted -Force;

esp-idf-pstool's People

Contributors

vlad-iliescu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.