Recently debugging used the ESP-01 module, and finally get through the compilation download debugging the entire channel, there are some details need to record, convenient follow-up development work.
Reprint Please specify: http://blog.csdn.net/sadshen/article/details/46776663
First, hardware preparation
The relevant information can not be a good collection, a great effort to download from the QQ Group to the test board circuit diagram, finally understand the meaning of the dial switch. In addition ESP-01 Flash size also no place marked, asked QQ Group of people just know at hand this black version of the module The flash size is 1M.
By understanding the circuit, it is generally known that the test board of the Ann can be used as aSTCThe microcontroller comes withesp-01module for communication,STCControl3a side-byLED, buzzer and24L01, whileWiFiunder module control6a side-byLED,LEDBut also with6a button.
Since we only develop the WiFi Part, we need to configure the dial switch, which is recorded as follows:
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 do the serial transceiver debugging, so now there is only one IO2 for functional testing.
Second, compile
Espressif's compilation environment integrates the required tools,Lubuntu or relatively small, ordinary computers can easily bring up, the usual development of our computer configuration is enough. Just refer to the esp8266_build_environment_guide.pdf in the attachment. 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 directory 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)
Of course there are other Linux commands, and basic friends will soon be able to get started. A friend who has no foundation needs to master a few common commands, such as make and clean.
There's a note here. Refer to this post, How to uses 1024+kb flash-how 1024KB and above Flash, http:// bbs.espressif.com/viewtopic.php?f=10&t=305. In the ESP-01 module (1M Flash) under the hardware conditions, you need to modify the priv_param_start_sec this macro.
Third, download
The official gave the download tool:
How do I use flash download tool?
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 desired bin and burn address,SPI FLASH The configuration is consistent with compile time.
Dial Switch 4 bit to on, click Start, the test board power, you can.
Four, commissioning
Dial Switch 4 bit to Off, open the corresponding COM port, you can see the printout.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
ESP8266 study Note One: How to implement ESP-01 compilation download and debug on the full-featured test board of an Ann