ESP8266-SDK Development into the pit (i)-Various configurations

Source: Internet
Author: User

Using the SDK based on Nonos, Link: http://wiki.ai-thinker.com/esp8266/sdk

1. Download Resources

①, official website Download:
Links: https://pan.baidu.com/s/1skRvR1j#list/path=/&parentPath=/

②, on-line search for the integrated version of resources:
Links: Https://pan.baidu.com/s/1c1WRp1A
(Alternate Link: https://pan.baidu.com/s/1i4YjWUx Password: 058j)

Note: There are a total of three things to download, cygwin,eclipse,esp_ide.
General role, as shown in the official website RELATED links: http://wiki.ai-thinker.com/ai_ide_install

Considering that the file is relatively large, the official website has taken the practice of downloading on demand.
If the computer has eclipse, you only need to download the compilation environment Cygwin and Esp_ide, and then first open the Esp_ide, select the corresponding path. (Eclipse corresponds to the directory where Eclipse.exe resides, and Cygwin corresponds to the directory where the bin is located.) )
Then there is a point, about the Cygwin installation path must not have spaces and Chinese, otherwise prone to problems.

2. Installation

First unzip the Cygwin_eclipse_ide.exe to the D:\ directory

Note: There are no spaces in the path and Chinese can be anywhere.

3. Path Configuration
Open ESP8266IDE.exe pop-up window

This is the associated path to eclipse and Cygwin described earlier. (Eclipse corresponds to the directory where Eclipse.exe resides, and Cygwin corresponds to the directory where the bin is located.) )

Click OK, wait to load, pop-up window:

Select the tool space, which can also be customized,

Off topic:

①, the first time you select no longer prompted, how to modify the paths of Cygwin and ecilpse.

When we choose not to prompt again, and the next time you want to change the path of Cygwin and eclipse, you can find the corresponding Conf folder, and then modify it inside.

Found it

Change to 0 to be able.

②, the first time you select no longer prompted, how to modify the workspace path.

Go to Window > Preferences > General > Startup and Shutdown Select Prompt for workspace on Startup.

Next, click OK to eject the Esp_ide interface.

The environment is well-fitted ...

4. Introduction of Engineering methods

The following two methods are available in the SDK V1.5.4 version, linked by: HTTP://WIKI.AI-THINKER.COM/ESP8266/SDK

is divided into two types, one directly under the current path, to import eclipse.
Another way to put a copy workspace on a project that is not in the workspace, and then import.

Direct Import

Open ESP8266IDE.exe, select File→import

Click on the C + + branch and select Existing Code as Makefile Project

To remove C + + support, select Cygwin GCC, click Browser, select the directory where ESP8266_NONOS_SDK is located,

Click Finish to complete the import

Clean project first, and then Build project to prevent errors. After compiling, the console output is compiled successfully as shown in the following diagram

Off topic:

Why do you use clear to purge each time before build?

Copy to Tool space method

In fact, directly using the above method, and then manually copy directly on the line.
Introduce this method only as an understanding ...

This method imports the SDK, the operation is a copy, that is, the operation is workspace inside copy. This eliminates the manual copy operation.

Well, this one is first introduced here.
Next, we will start the serial port printing, Hello Esp8266

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.