ESP8266 SDK Programming Primer 01-Basic article

Source: Internet
Author: User
Tags manual

Always want to engage in smart home aspects of things, smart home can not be separated from the network control, before a period of time arduino+esp8266 solution, found that this way stability is poor, often appear communication errors and transmission problems, access to some information, Discover the ESP8266 module inside itself can do some simple processing, and then began the ESP8266 SDK programming learning journey, this article uses the most basic esp8266-01 module.

Information Enquiry website

Espressif official website Http://www.espressif.com/zh-hans


Module wiring can refer to a previous article I wrote, "hands-on teaching you to use ESP8266----① Wiring chapter", here in order to facilitate the subsequent programming and firmware brush write, reference to the online part of the information of their own welding a brush to write the firmware board, circuit diagram is as follows:



when soldering the circuit board, note the position of the pin for the ESP8266 socket .

In order to do the experiment on some of the lines have been modified, but the above circuit diagram is the smallest circuit, the front added a voltage regulator module, in fact, can not be connected to the voltage regulator circuit, directly according to the wiring section will be 3.3V to the pin, my circuit board finished is probably the following look.


After the circuit module is done, first we try to brush the firmware, firmware files We can go to Espressif's official website to download, download the address http://bbs.espressif.com/viewforum.php?f=46&sid= deb67d22783cc18ff1ab950c70d00625 according to their own needs to download the required version, due to the official firmware version 1.5 or higher requires a large storage space, after the trial esp8266 can only brush write firmware of the following version, now with v1.4.0_15_09 The _18 version is an example of the following firmware's brush-write steps.

Let's take a look at the pin diagram of the esp8266-01 module.


Module working mode is determined by GPIO0 pin, according to the WiFi document description dangling: Flash Boot, Work mode pull: UART DownLoad, download mode, so when the need to brush the firmware, you must pull down the GPIO0 pin, that is, to let the gpio pin grounding, If the circuit board is welded, that is, the small switch on the board, you can enter the brush write mode, but here need to explain, into the brush and write mode in the module before the Power drop GPIO0 pin, that is, first press the switch does not put power on the module, or brush write program error.

The official Brush-writing program is required to write the firmware (download address: http://www.espressif.com/en/support/download/other-tools?keys=&field_type_tid%5B%5D= 14), the brush writing step can refer to the official "ESP8266 SDK Getting Started Guide" part sixth (document address: http://www.espressif.com/zh-hans/support/explore/get-started/esp8266/ Getting-started-guide)

Here is a brief introduction to the following writing process, the official firmware package contains a lot of files, here we need to use four files, respectively, the bin directory of Blank.bin and Esp_init_data_default.bin, and Bin/at/boboot under the

Eagle.flash.bin and Eagle.irom0text.bin A total of four files, these four documents in the official burn manual has detailed description


and has given the relevant burning address, we open the official download of the brush write program, you will see the following interface


Above is my brush write program, the top four is the need to brush to write into the file, you need to check the first box, and select the location of the relevant files, and fill in the file corresponding to the burning address, choose, the following is the burning of the parameter settings, this in the manual is also explained, the following is part of the document explanation, You can read the document yourself, if you are not clear, you can follow my configuration above to brush and write


COM port according to the actual selection, the frequency is generally the default is 115200, the drop-down GPIO0 interface, after the normal power supply, click the Start button, brush write program start brush Write, the following progress bar will show the brush writing progress, the process of brushing to keep GPIO0 pin for the drop state, if the brush write failed, May be the problem of gpio pins, remember to pull back power, after the completion of the brush write, the module needs to power off the power supply into the normal mode, refer to the "hands-on teaching you to use ESP8266----② debugging" using the AT command to view the firmware version, At this time the firmware version should display 1.4, the above is ESP8266 firmware brush write simple process, have not understood the friend welcome communication.




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.