In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to build the development environment in ESP8266 development. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
# download IDE integrated development environment
Unlike Keil MDK, which is usually used to do embedded systems such as 51, stm8s and stm32, Espressif provides Open SDK based on the gcc tool chain, and the integrated development environment used is Eclipse and its CDT plug-ins. Children's shoes who have developed experience in Java or Linux C should be very familiar with them. At the same time, IDE integrates Cygwin as an auxiliary compilation system, and friends who like Linux Shell can use Cygwin as the compiler development environment.
Download from: http://pan.baidu.com/s/1b2fAsI
After downloading, extract the file shown in the following figure and double-click IDE.bat (non-toxic for initializing environment variables. Starting eclipse.exe directly under the eclipse folder will cause compilation to fail).
First configure the working directory, use D:\ Documents\ Workspace here, use your own machine's folder instead, and select the default configuration item, click OK.
Close the Welcome Welcome dialog box and open the Project Explorer Browse child window.
Finally, the following picture is our daily development zone. Eclipse is the best development tool for the open source community (probably ). Unfamiliar children's shoes can spend more time learning about your tools, sharpening knives and cutting firewood.
# Import sample project
The Hello world of each embedded development tutorial lights up the LED, but because the lights on the mushroom cloud development board are too bright by default, the content of our first lesson will be the domineering "extinguish LED".
Right-click inside Project explorer and select Import, as shown in the following figure:
In the next pop-up Import dialog box, select Existing Code as Makefile Project + = > Existing Code as Makefile Project, and click Next, as shown below:
Select the sample project folder in order, and enter the corresponding project name. Here, take PROJ01_LED as an example, select Cygwin GCC in the tool chain selection area below, and click finish. The import of the project is completed, and the specific code meaning will be explained in the next article, which mainly completes the construction of the development environment, project management, etc., and then let's compile the project and run it.
# firmware cleaning and compilation
Right-click on the project, select Clean Project to clean up the temporary files that were compiled before the project, and then right-click again and select Build Project.
Clean project, at the bottom of the screen, switch to the Console terminal window, you can see the cleanup log output from the terminal window, and finally display Build Finished.
Similarly, when the Build project, the Build Project dialog box will pop up, you can click Run in Background, and the corresponding Console console window will output the compilation log.
The compilation is completed and the Build Finished is output successfully. Note that the final output text indicates that the final file has been generated in the bin directory, and points out the offset address corresponding to the burning of the final compiled file, which we will use when brushing the firmware later.
Successfully compiled firmware file:
# firmware swiping and running
Connect the development board to your machine, and after installing the driver, the system equipment management area will see the available serial slogans. Mushroom Cloud development board uses CH340 as the serial chip, as shown in the following figure. If you have multiple serial ports, you need to choose the correct serial number to burn.
Turn the burn dial switch of the development board to the GND position, as shown in the following picture, and press the button on the left, the circular light on the board will light up to the maximum brightness, indicating that you have entered firmware burn download mode.
Open the Lexin original factory burning tool, press the settings selected in the following figure (select the correct firmware file, and fill in the corresponding firmware offset address on the right, whichever is prompted after compilation), select the correct string number, here is COM3, click Start to start burning, it will finally prompt the burning to be completed.
Screenshot of the tool at completion:
After the successful completion of the burning, return the dial switch to the corresponding position in the running state, and press the RESET reset button on the left, you will see the following picture, there will be no more blind lights.
# compiling a project using Cygwin
If you like the command line, you can use the Cygwin included with the IDE environment for compilation and development. Double-click the corresponding bat file in the Cygwin directory to start the CLI environment. In addition, the Cygwin environment here directly uses the Xtensa compilation tool chain in IDE v2.0 of Shenzhen Anxin Company.
After startup, as shown in the following figure, you are prompted to be in the ~ directory. If you need to compile, use the df command to find out the root directory of your corresponding machine, and cd to the corresponding location.
Executing make clean & & make can clean up and compile at once, and output the same content as the Eclipse console. In fact, Eclipse just calls the Make command here.
After reading the above, do you have any further understanding of how to build a development environment in ESP8266 development? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.