ESP8266 Study Note 1: How to implement ESP-01 compilation download and debug on an all-in-all function test board

Source: Internet
Author: User


The recent commissioning used the ESP-01 module, the final compilation of the download debugging the entire channel, there are some details need to record, convenient development work.

Reprint Please specify: http://blog.csdn.net/sadshen/article/details/46776663

First, hardware preparation

There is not a very good collection of information about the letter. A very big effort to download from the QQ Group to the test board circuit diagram, finally made clear the meaning of the dial switch. In addition , the flash size of ESP-01 is not marked. Asked the QQ Group in the people just know at hand this black version number module Flash size is 1M.

Through the understanding of the circuit, it is generally known that the test board of the Ann can use aSTCThe microcontroller comes withesp-01module for communication,STCControl3a side-byLED, buzzer and24L01. andWiFiunder module control6a side-byLED. LEDat the same time and6a button.

Since we are only developing the WiFi Part, we need to configure the dial switch, such as the following:

Upper dial Switch:xx1010 ( xx1110 at Download )

Dip switch below:001010


The download and operation status of the 4-bit control module of the above dial switch.

The ESP-01 has 8 pins , and the 4 pins are deducted from the VCC GND RST ch-pd , leaving 4 a foot is available. IO0 status indication. TX RX to do serial transceiver debugging. So now there's just one IO2 for the function test.


Second, compile

Espressif's compilation environment integrates the required tools,Lubuntu or smaller. Ordinary computers can be easily brought up, the usual development of our computer configuration is enough.

Just a reference to the appendix

id=110 ">esp8266_build_environment_guide.pdf. Document, there is basically no problem. 1. Start:set up Linux compile environment- build ESP8266 Build Environment

Http://bbs.espressif.com/viewtopic.php?f=21&t=86


This is the compilation command that will be used for each compilation:

1. suspend the shared disk ./mount.sh

2. Enter the administrator password espressif

3. go to the app compilation folder CD ~/share/esp_iot_sdk_v1.1.1/app

4.make

5../gen_misc.sh(SPI FLASH related options to be consistent with the actual, most important is size)

And of course there are other Linux commands. A basic friend can get started very quickly.

A friend with no foundation needs to master several commands that are often used. Such as make clean and so on.

There's a note here.

Take a look at this post. How to using 1024+KB Flash- How do I use 1024KB and above Flash,http://bbs.espressif.com/ Viewtopic.php?

f=10&t=305. Under the hardware conditions of the ESP-01 module (1M flash). Need to change priv_param_start_sec this macro.

Third, download

The official gave the download tool:

How do I use flash download tool?

f=10&t=362 ">http://bbs.espressif.com/viewtopic.php?f=10&t=362

Refer to this document. 2a-esp8266__iot_sdk_user_manual__cn_v1.1.0.pdf, select the required bin and burn address. SPI FLASH configuration is consistent with compile time.

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity /center ">

Dial Switch 4 bit to on, click Start, test board power on, you can.

Four, commissioning

Dial Switch 4 bit to Off, open the corresponding COM port, you can see the printout.



ESP8266 Study Note 1: How to implement ESP-01 compilation download and debug on an all-in-all function test board

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.