Installing SDK and Toolchain for ESP8266 WiFi SoC

This short tutorial will guide you to install the toolchain (which includes the gcc compiler) for the ESP series of SoC, discuss the steps to write code using the ESP SDK and finally load the compiled code to the SoC and run it. These will be useful for you if you are developing IoT based applications. In this way you don’t need to attach external microcontroller to the ESP module to run your code, you can run code directly on the ESP which will make your application simple, small and low cost. But one drawback is that the application code you write resides on the external flash chip of the ESP modules and can be read by anyone using a flash programmer. Thus your code is not secure from duplication. So, let us first download and install the toolchain use the following link to download the toolchain https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/windows-setup.html ESP SDK download link download is a ZIP file which you need to extract to your harddisk say on C:\ drive. It will create a folder named msys32 msys32 folder This folder contains four executable file, you need to run the file mingw32.exe mingw32 You will get a console window like shown below msys32 console window Actually it is a Linux OS like shell (command) window. So you need some familiarity with Linux Shell commands to operate it. Now the first step is to create a directory (folder) for keeping the ESP SDK and ESP related programs we develop. For that I recommend creating a folder named ESP in root of some drive say F:\ drive or C:\. to goto new drive you have to type the cd command like this. CD stands for change directory. change directory command now we are in F:\ drive, enter a command to make new directory called the esp. In this directory(“esp”) we will keep the SDK and our own program files. The command is mkdir esp . mkdir stands for make directory. Then we have to go inside this newly created directory using the cd command. esp folder Now we have to clone the ESP SDK using the git command. enter following command in the schell git clone –recursive https://github.com/espressif/ESP8266_RTOS_SDK.git this will clone the SDK on your local harddisk git clone the ESP SDK An environment variable needed to be defined so that the toolchain program can find your SDK. The variable should be defined like this
    	
    		export IDF_PATH="/f/esp/ESP8266_RTOS_SDK"
    	
you can verify if the path has been correctly set by using the echo command
echo $IDF_PATH 
and it will print the environment variable value. $IDF_PATH environment variable After this, we need to check which version of Python is available in our MSYS environment. To do this, issue the following command …
python --version
and it will print the Python version, mostly you must be having Python 2.7 installed. Now some Python packages needed to be installed, all these are listed in a filled named requirements.txt we need to issue the following command to install all these packages in one go …
python2.7 -m pip install --user -r $IDF_PATH/requirements.txt
Now we are all set up to start a ESP8266 SDK project !

Facing problem with your embedded, electronics or robotics project? We are here to help!
Post a help request.

Avinash

Avinash Gupta is solely focused on free and high quality tutorial to make learning embedded system fun !

More Posts - Website

Follow Me:
FacebookLinkedInGoogle Plus

2 thoughts on “Installing SDK and Toolchain for ESP8266 WiFi SoC

  • By A M Morawala - Reply

    Hi Avinash. I am an old time user of AVR Extreme Burner. When I launched the application today, I was requested to make a donation to Extreme Electronics. I tried to do so, but since the currency was only in USD, my transaction was denied. How can I contribute to Extreme Electronics, since it is very useful to me? Please let me know on m y email ID.
    Regards.
    A M Morawala

  • By Sk - Reply

    Title: Bangladesh Patent Department Implements Examination Fees for Patent Grant

    In a recent development, the Bangladesh Patent Department has introduced a significant change in its patent application process by implementing examination fees for patent grant. This move aims to streamline the patent examination process and ensure the efficiency of the overall system.

    Applicants seeking patent protection in Bangladesh will now be required to pay examination fees along with their patent application. The examination fees mark a notable shift in the country’s intellectual property landscape, indicating a commitment to enhancing the quality and thoroughness of patent examinations.

    One key aspect of this change is the stipulation that applications for examination must be submitted within a 36-month window from the date of filing the initial patent application. This time frame emphasizes the department’s emphasis on timely and efficient processing of patent applications.

    The introduction of examination fees is expected to have several implications for both applicants and the patent office. On one hand, it signals a move towards aligning Bangladesh’s patent system with international standards, encouraging innovation and protecting intellectual property rights more effectively.

    On the other hand, applicants will need to be mindful of the new timelines and budget for the examination fees in their patent filing strategy. The 36-month window for applying for examination reinforces the importance of prompt action for those seeking patent protection in Bangladesh.

    The decision to implement examination fees reflects a broader global trend where many countries are reevaluating and updating their patent systems to better adapt to the evolving landscape of innovation. By introducing fees for examination, Bangladesh aims to enhance the quality of granted patents and reduce the backlog of pending applications.

    It remains to be seen how this change will impact the number and quality of patent applications in Bangladesh. However, the move towards a more structured and fee-based examination process is likely to contribute to the overall efficiency and effectiveness of the country’s patent system. As stakeholders adapt to these changes, it is anticipated that the patent landscape in Bangladesh will continue to evolve, providing a more robust framework for protecting intellectual property in the years to come.

Leave a Reply

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


5 + = eight

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>