ESP8266 build a product --- things up the environment to compile and burn

A former record

  As a wifi hard for many years in the field who had previously been in the foreign and big companies do chips, not how to use domestic chip companies had made out of chips. Just recently have a project need to use a low-cost wifi chip, asking many, Lexin found most suitable. To make use of.
After a bit familiar with basic Lexin of ESP8266, I feel very surprised, actually there are domestic chip companies able to write such a detailed document. No need to ask anyone will be able to run up a chip, and can get started quickly. This is not an ordinary company can do, to have such a detailed document and the ecological chain, previously only STMicroelectronics and NXP that companies can do.
  After compile and run their own hands, but also encountered some problems. A document is too many, too many models module, it is difficult to find the right document. Furthermore, it is difficult for domestic use Baidu to search Lexin's official documentation, this can only search in their official website, the official website search function and bad, a lot less than search. There is the official website of the information is too much for a section of the chip and the board, to spend a great time to find all the.

  After running through the entire functionality of the system, I'll do a record, behind the convenience of friends.

Two environmental structures

  Build environment to build:
  There are several methods to install on their documents, one is the source installation, another is the library install. I just started using the source installation, during which encountered many problems, first of code is too large, the download will not be successful on github. We need better network, moreover, the compiler will encounter a variety of dependent libraries. Challenge for programmers is relatively large. Another library is installed, this is more convenient, I recommend this method of installation.

There is an official document using a linux virtual machine, virtual machine developed sense of personal efficiency is too low. A friend said, well, play the virtual machine linux just like to find a girlfriend inflatable doll version, I suggest you better not use the ubuntu virtual machine to play.

In linux installation method, see the following documents:

https://docs.espressif.com/projects/esp8266-rtos-sdk/en/latest/get-started/linux-setup.html

In fact, this document is very clear, but there are a few focus is to look at the painting.

 After you install the compiler must test whether the installation is correct:

The first step in any run directory: xtensa-lx106-elf-gcc -v considered properly installed as shown below.

The second step, to determine whether the compilation:

Run under ESP8266_RTOS_SDK / examples / get-started / hello_world directory: elf has compiled files compiled considered a success.

Download three runs

  I chose the development board is ESP-Launcher. List reasons, all interfaces are lead out, Lexin Company production, quality is guaranteed.

Board URL: this board even on Taobao also sell their own, they seemed to be able to advertise for free.

https://www.espressif.com/zh-hans/products/hardware/development-boards 

After get this board, took aim glances, and quickly look at the instructions, I have to help you find: The following URL can be viewed online:

https://www.espressif.com/sites/default/files/documentation/esp8266_quick_start_guide_cn.pdf

After use, I feel there are two places should seriously look at the newcomers:

  The first is divided into boot mode and on the distinction:

Both models rely on a GPIO on the board to control the use of specific rules Lexin of video materials to explain most clearly, network address:

https://v.youku.com/v_show/id_XMTY5Nzc5ODEwOA==.html

  The second is more GPIO multiplexing, this board has a GPIO drawn in different places, see schematics and do something next time to pay attention, there is always an interface for you.

As shown below:

  With the board and build environment, it is easy to handle, only download. Download the official version of windows do very complicated, people looked feel a kind of vertigo. Here is the author of ubuntu download at very short answer, in the case only need to enter download mode of the board, the next source root directory: make flalsh to complete the download:

After downloading, the board wave code switch to the normal operating mode.

Re-power, so you can see the normal log print.

 

 

Guess you like

Origin www.cnblogs.com/dylancao/p/11781398.html