ESP8266 SDK Windows Setup (updated 11/29)

Posted by: Chao Category: Network Tags: , , Comments: 21

ESP8266 SDK Windows Setup (updated 11/29)

There is already an official SDK running on Linux Lubuntu, very easy and simple to use. But now here we have the SDK environment transplant to Windows system via the software tool called cygwin, which allow you to create the linux environment in the windows, and we have the SDK running on this certain environment.

This is full setup environment, only need to download to use, let us follow below  few steps:

You can get this setup cygwin for ESP file here (SDK is the current 0.93 and with 0.92 codes, seems not working well), some explanation on this link, and use AT new version 020 here. Or use this one SDK 0.92 which will is stable(simple step, only make it, full command wizard differ to the guide below, but always keep the makfile in app folder). i. After get the zip file, unzip it on your disk directly, we did it on drive letter “D:” here, and you should have “D:cygwinCygwin.bat”, click and run cygwin.bat

Cygwin directory

cd into SDK folder, make and wait about 3-5 minutes for compiling, then run make compose (no need for 092 cygwin sdk) to generate bin files, final bin file is located at bin (appfirmware for 092) folder.

compose SDK

when compose is finished, the esp flasher tool will automatically pop up, check the directory, normally normally to change the drive letter, for example here I have D:cygwin… SDK flash

Finally connect your board on update mode and flash it!

The steps to setup AT 020 work with SDK093:

  • Download the new AT020
  • Remove the all the files in /SDK/app except the gen_misc.bat and, which are associated with the SDK
  • move the files in app in AT020 to /SDK/app, include make files, NOT include the gen_misc files.
  • remove sames files in /SDK/bin and replace them by AT020/bin (maybe optionally, please keep sub-folders and
  • make and make compose!
  • According to the readme file, also flash blank.bin at 0x7e000, see images below:
  • Tried the deep sleep mode, some data output after the timeout

Note: This SDK seems can not compile IoT demo well, please still use Lubuntu instead.

Share this post

Comments (21)

  • ESP8266 for Windows | My Tech Weblog Reply

    […] I downloaded the package here and followed the instructions TO THE LETTER (that’s important). I ran the batch file and LO – a […]

    November 28, 2014 at 8:36 pm
  • Chandan Reply

    …..Downloading. Expecting the clean explanation as always……..the another big site just spinned my head !

    November 28, 2014 at 9:19 pm
    • Chandan Reply

      Just excellent !!!! The coolest compilation. Just a small correction. The Cygwin.bat containing “E:” drive. So, it should be changed if the whole cygwin directory is placed at “D:”.

      November 28, 2014 at 10:01 pm
  • Chao
    Chao acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.

    Hi Chandan,

    Thanks for the note, the drive letter can change to any, where you exact the cygwin folder, it is not clearly described in the post.

    November 29, 2014 at 6:02 am
  • CM Reply

    It will be highly appreciable if you kindly inform the steps to compile V020

    with your setup.

    November 29, 2014 at 7:34 am
    • CM Reply

      I have compiled the V020 with your setup. placed some missing files,directory at bin and verified the Makefile inside the app.
      Thanks a lot

      November 29, 2014 at 9:43 am
  • CM Reply

    Thanks Chao, please add other instruction if I am missing anything to recompile new V020.

    1. Move the /cygwin/SDK/app and SDK/bin to different location (not in same /SDK location) and let us consider those as app_old and bin_old directory
    2 Copy the espressif SDK directories (at. bin) inside /cygwin/SDK/ rename as app, and bin
    3. Copy from app_old and paste to new SDK/app/ location
    4. Copy following directories and files from bin_old and paste to new /SDK/bin directory

    Thats it.

    November 29, 2014 at 10:15 am
  • Ken N Reply

    Thanks for this post. I was able to get the 0.9.3 SDK building right away on my i5 laptop running Windows 8.1.

    Here’s a rewrite of the steps to add the AT20 code to the build system, that reflects what worked for me. Please confirm that this is correct.

    * Install and run the 0.9.3 SDK as described elsewhere.(but don’t flash the ESP8266 yet)

    * Recommended – backup the SDK/app and SDK/bin directories. Save somewhere other than the SDK directory

    * Download the new AT020, unzip into a temporary directory.

    * Remove all the files in current /SDK/app directory, except for gen_misc.bat and

    * Move all files in the AT020 at directory, EXCEPT for the gen_misc and gen_misc_plus files, to /SDK/app. Include the make files.

    * Copy over all files from AT020/bin to /SDK/bin. Allow all overwrites.

    * Make and make compose, and flash your ESP8266!

    * According to the readme file, also flash blank.bin at 0x7e000 (I didn’t, but my ESP8266 still worked)

    November 29, 2014 at 5:45 pm
  • CM Reply

    It is a great post. I have added my new AT commands also and modifying some existing AT commands for better operation. For example the CWJAP. If the SSID is already connected, it should return, but as of now, it re-connects which takes time.
    However, what help and suggestion I am asking from you is to provide some support on Eclipse configuration.
    I have successfully configured eclipse Luna version with suitable JRE and can reach upto make. So, it compiles and generates the files inside .output. But I am not abale to configure the ight way to run after make (using external tool configuration in Eclipse).
    Please help if you can spare some time.

    December 2, 2014 at 8:46 am
    • Chao
      Chao acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.

      Hello CM,

      Sorry can not help you on this, the Linux Lubuntu and Windows Cygwin are maybe the best compile environment for now, you can try to these two common options, we don’t use eclipse now and have no knowledge about that, sorry!

      December 2, 2014 at 8:58 am
      • CM Reply

        Hi Chao,
        Actually i loved your solution and sticking with it. I just wanted an IDE to organize and easily modify the codes thats why using Eclipse with Cygwin as background compiler and your script to proceed with.

        So, as of now, I have the eclipse ide opened to compose the code and cygwin window to compile the code!

        December 2, 2014 at 2:57 pm
  • Francisco Reply

    Thank you all for sharing this information.

    Question from a Noob :
    I have the compiler running , even compiled – generated bins – and flashed to ESP8266 .
    This I did with AT20 files according to excellent instructions given.
    Allthough I do not understand wehat this modifications meant , really….
    The generated firmware si of no use for me because it is running only 115200 bauds and I need something that can talk to Arduino/Pic.
    Now what ?

    Anybody can talk me trough as how to make use of this ?
    I would really appreciate some help , something like a Tutorial…..

    For example , How do I compile an AT20 – SDK 92 version ? what are the changes to make ? How and where edit the application programs ?

    Thank you for reading.
    Any help will be highly appreciated.


    December 3, 2014 at 11:41 am
  • CM Reply

    I am trying to update from local server using “cloud update”, but cant generate user1.bin and user2.bin.
    I have tried to follow
    but, no success.
    Waiting for your kind suggestion. Please help.

    December 7, 2014 at 5:20 pm
  • Aston Francis Reply

    I need to use SPI on Arduino for ESP-07 module. Any sample code please?

    January 14, 2015 at 2:09 am
  • CM Reply

    Can you please give guidelines how to compile an IOT SDK to AT or, a new IOT SDK to old AT?

    January 14, 2015 at 4:16 am
  • Chao
    Chao acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.

    You can find the official SDK at, it maybe better and easy to use then this one.

    January 14, 2015 at 6:44 pm
  • David Hackenbracht Reply

    May have been good last year, but as of 6/23/15 most of theses links DON’T work. Unable to load SDK for windows for this reason.

    June 23, 2015 at 10:14 pm
  • Chao
    Chao acts as a real person and passed all tests against spambots. Anti-Spam by CleanTalk.

    Dear all, please visit and search for “ESP8266 firmware” or “ESP8266”

    June 24, 2015 at 2:41 am
  • poulbran Reply

    The reply about the AT commands is spot on. There is so much more power in the board itself.

    September 12, 2016 at 7:52 am

Leave a Reply

Your email address will not be published. Required fields are marked *